diff --git a/playbook.yml b/playbook.yml index fc1f023..85b5004 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,7 +1,7 @@ --- - hosts: all become_user: stephane - become: true + become: false gather_facts: no vars: test_var: test @@ -22,6 +22,7 @@ - name: Create a directory if it does not exist + become: true ansible.builtin.file: path: /root/test state: directory