Re: [ansible-project] Re: become: true does not work but -b works

2024-05-14 Thread Sameer Modak
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

Re: [ansible-project] Re: become: true does not work but -b works

2024-05-14 Thread Brian Coca
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

[ansible-project] Re: become: true does not work but -b works

2024-05-14 Thread Sameer Modak
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 |