diff --git a/contextualization/basic.yml b/contextualization/basic.yml index 437ad88e5..8060eb0fa 100644 --- a/contextualization/basic.yml +++ b/contextualization/basic.yml @@ -47,7 +47,11 @@ when: ansible_distribution == "Ubuntu" ignore_errors: yes register: apt_update + become: yes + become_method: sudo - name: Ubuntu force apt update (avoid apt lock) command: apt update when: ansible_distribution == "Ubuntu" and apt_update|failed + become: yes + become_method: sudo