From 651e52d19411b2b89fb8988aa0f7f0340109cab8 Mon Sep 17 00:00:00 2001 From: Sebastien Thebert Date: Tue, 11 Oct 2022 00:33:11 +0200 Subject: [PATCH] Add 'become' to 'apt update/upgrade tasks' --- tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 73b1751..ce74d53 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 ) command: pro attach {{ ubuntu_pro_token }} become: yes