diff options
Diffstat (limited to 'roles/common/tasks/update.yml')
-rw-r--r-- | roles/common/tasks/update.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/common/tasks/update.yml b/roles/common/tasks/update.yml new file mode 100644 index 0000000..db8ae39 --- /dev/null +++ b/roles/common/tasks/update.yml @@ -0,0 +1,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 |