aboutsummaryrefslogtreecommitdiff
path: root/roles/linux_base/handlers
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
commit95b73daa36b23565a8566f71f9b202d3459b685f (patch)
treecb17b021be70e7868d0ec235a761f0ecdc80f3f2 /roles/linux_base/handlers
Initial CommitHEADmaster
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