blob: db8ae39a870454b42364fa3f0fa57d95d2d9e7ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
- name: Ensure all required repositories are configured
package: name={{item}} state=present
register: result
with_items:
- epel-release
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
- include_tasks: main_yum.yml
when: ansible_pkg_mgr == 'yum'
vars:
os_update: true
- include_tasks: main_dnf.yml
when: ansible_pkg_mgr == 'dnf'
vars:
os_update: true
|