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
+2
+2
View File
@@ -2,10 +2,12 @@
- name: Launch 'apt update' - name: Launch 'apt update'
ansible.builtin.apt: ansible.builtin.apt:
update_cache: yes update_cache: yes
become: yes
- name: Launch 'apt upgrade' - name: Launch 'apt upgrade'
ansible.builtin.apt: ansible.builtin.apt:
upgrade: yes upgrade: yes
become: yes
- name: Register this host on Ubuntu Pro (pro attach <token>) - name: Register this host on Ubuntu Pro (pro attach <token>)
command: pro attach {{ ubuntu_pro_token }} command: pro attach {{ ubuntu_pro_token }}