Initial commit
This commit is contained in:
15
update-os/update.yaml
Normal file
15
update-os/update.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Update Systems
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Run Apt Update and upgrade where needed
|
||||
apt:
|
||||
update_cache: yes
|
||||
upgrade: yes
|
||||
when: ansible_distribution == 'Debian'
|
||||
|
||||
- name: Run APK update and upgrade
|
||||
apk:
|
||||
update_cache: yes
|
||||
upgrade: true
|
||||
when: ansible_distribution == 'Alpine'
|
||||
Reference in New Issue
Block a user