From 1ea9cab1d9f5d46f150b1291881be409a50ef341 Mon Sep 17 00:00:00 2001 From: Zolfa Date: Sat, 6 Jun 2020 00:17:55 +0200 Subject: [PATCH] playbook to upgrade os package managers --- apt_upgrade.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apt_upgrade.yaml diff --git a/apt_upgrade.yaml b/apt_upgrade.yaml new file mode 100644 index 0000000..3dad61b --- /dev/null +++ b/apt_upgrade.yaml @@ -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'