Hi
I have enabled privilege escalation in ansible.cfg file:
[privilege_escalation]
become = True
become_ask_pass = True
become_user = root
become_method = su
But now I have one playbook which must run on localhost with connection local and no passwords and now privilege escalations. How to configure that in playbook. Now I have this:
- hosts: localhost
connection: local
become: no
sudo: no
su: no
It does not work, when I run playbook it requires it enter password. I tried this
But got:
ERROR: ask-pass is not a legal parameter of an Ansible Play
Also become-ask-pass does not work.
Thanks
Edgars