From 5b7a9cae7d450d552dc05f1613de75494552b060 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 2 Jun 2024 19:03:23 +0200 Subject: [PATCH] fix(ansible): continue using the become directive in the block --- snippets/ansible.tasks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snippets/ansible.tasks.yml b/snippets/ansible.tasks.yml index d603fe0..7250a23 100644 --- a/snippets/ansible.tasks.yml +++ b/snippets/ansible.tasks.yml @@ -105,9 +105,10 @@ | combine }} - name: Do your thing! + become: true + become_user: "{{ item.key }}" ansible.builtin.file: path: "{{ item.value }}/placeholder" - owner: "{{ item.key }}" state: touch with_dict: "{{ users_homedir }}" - name: "From the system's entries"