aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/apt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/apt/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml
index 5a33688..f331995 100644
--- a/roles/apt/tasks/main.yml
+++ b/roles/apt/tasks/main.yml
@@ -1,15 +1,15 @@
- name: Check if apt is installed
command: apt-get --version
register: apt_version
- changed_when: no
- failed_when: no
+ changed_when: false
+ failed_when: false
- when: apt_version.rc == 0
- become: yes
+ become: true
block:
- name: Upgrade packages
apt:
- update_cache: yes
+ update_cache: true
upgrade: full
notify: reboot
@@ -18,8 +18,8 @@
- name: Clean up dependencies
apt:
- autoremove: yes
- purge: yes
+ autoremove: true
+ purge: true
notify: reboot
- name: Flush handlers