Add 'become' to 'apt update/upgrade tasks'
This commit is contained in:
1 parent
ff3c016c94
commit
651e52d194
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user