%user ALL=(ALL) NOPASSWD: /bin/su - *
and in ansible.cfg
Use su as the become_method and also use sudo su - as become_exe
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADG%3DkosJgCfpNt45h_S%2Bp1%3D1YjKyTZsW-PJ2Xdu%3DMbCc-Ur4gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwO3yMuGWpZ5ywP68vk8biO6WDgVYUvw60fvusUeuHp%3DkQ%40mail.gmail.com.