aboutsummaryrefslogtreecommitdiff
path: root/roles/linux_base/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/linux_base/handlers')
-rw-r--r--roles/linux_base/handlers/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/linux_base/handlers/main.yml b/roles/linux_base/handlers/main.yml
new file mode 100644
index 0000000..0065ae9
--- /dev/null
+++ b/roles/linux_base/handlers/main.yml
@@ -0,0 +1,16 @@
1- name: update and upgrade - debian
2 when: ansible_facts['distribution'] == 'Debian'
3 become: yes
4 apt:
5 name: "*"
6 state: latest
7 update_cache: yes
8 register: apt_upgrade
9 retries: 100
10 until: apt_upgrade is success or ('Failed to lock apt for exclusive operation' not in apt_upgrade.msg and '/var/lib/dpkg/lock' not in apt_upgrade.msg)
11
12- name: update and upgrade - fedora
13 when: ansible_facts['distribution'] == 'Fedora'
14 dnf:
15 name: "*"
16 state: latest