From bd443663bd137fdf380349ce315f87f32925f0fd Mon Sep 17 00:00:00 2001 From: akshun Date: Mon, 29 Apr 2024 18:27:11 +0530 Subject: [PATCH] Update playbooks/update-packages.yml --- playbooks/update-packages.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/update-packages.yml b/playbooks/update-packages.yml index 093c184..04f0d35 100644 --- a/playbooks/update-packages.yml +++ b/playbooks/update-packages.yml @@ -7,11 +7,13 @@ - name: Update cache apt: update_cache: yes - when: ansible_distribution == 'Debian' + when: + - ansible_distribution == 'Debian' + - ansible_distribution == 'Ubuntu' - name: Upgrade packages apt: name: "*" state: latest when: - ansible_distribution == 'Debian' - - ansible_distribution == 'Ubuntu' \ No newline at end of file + - ansible_distribution == 'Ubuntu'