Hello Brian,
Yes it works , Issue was my role was picking the values from roles
directory instead from current directory hence despite making changes at
current file become was not working.
On Tuesday, May 14, 2024 at 8:12:07 PM UTC+5:30 Brian Coca wrote:
> We have tests for this and i just te
We have tests for this and i just tested manually, become: true on a
task does work. Tried with your task (supplying my own values for the
vars) and it works the same, putting it on the task, the play, a
block, role or command line. The only way i get it to 'not work' is
setting ansible_become: fal
Task which throwing error:
name: Create Prometheus install and config directory
become: true. <-- does not work
file:
path: "{{ item }}"
state: directory
mode: 0755
owner: "{{user}}"
group: "{{group}}"
loop:
- "{{ jmxexporter_jar_path |