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

ask-pass: no

But got: 

ERROR: ask-pass is not a legal parameter of an Ansible Play


Also become-ask-pass does not work.

Thanks
Edgars

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7f820349-b170-4eaa-b42f-846d49fd3dd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to