Closed fatmaAliGamal closed 1 year ago
@fatmaAliGamal Thank you for raising this issue.
Based on the error message you've provided, it seems the task "Remove pgbouncer.ini and userlist.txt conf files from localhost" might be encountering an issue due to the Ansible playbook trying to escalate privileges when it's not necessary.
To resolve this, we suggest setting become: false
in this task. This change should inform Ansible that privilege escalation is not required to execute this specific task. The code would look as follows:
- name: Remove pgbouncer.ini and userlist.txt conf files from localhost
run_once: true
become: false
file:
path: "files/{{ item }}"
state: absent
loop:
- pgbouncer.ini
- userlist.txt
delegate_to: localhost
Could you please implement this change in your branch and test if it resolves the problem? We would appreciate your feedback on this proposed solution.
this is correct solution and you need to add become: false
thanks for checking this out
I will prepare a PR with a fix
run :: ansible-playbook add_pgnode.yml
error: