Add 'become' to 'apt update/upgrade tasks'

This commit is contained in:
Sebastien Thebert committed 2022-10-11 00:33:11 +02:00
1 parent ff3c016c94
commit 651e52d194
1 file changed
+3 -1
+3 -1
View File
@@ -2,11 +2,13 @@
- name: Launch 'apt update'
ansible.builtin.apt:
update_cache: yes
become: yes
- name: Launch 'apt upgrade'
ansible.builtin.apt:
upgrade: yes
become: yes
- name: Register this host on Ubuntu Pro (pro attach <token>)
command: pro attach {{ ubuntu_pro_token }}
become: yes