Browse Source

playbook to upgrade os package managers

python3
Zolfa 5 years ago
parent
commit
1ea9cab1d9
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      apt_upgrade.yaml

+ 11
- 0
apt_upgrade.yaml View File

@ -0,0 +1,11 @@
- hosts: black_vm:black
tasks:
- apt:
update_cache: true
upgrade: 'dist'
when: ansible_distribution == 'Debian'
- apk:
available: true
upgrade: true
update_cache: true
when: ansible_distribution == 'Alpine'

Loading…
Cancel
Save