For a bit more security, you might try something I outlined here: http://serverfault.com/a/672769/274263
and here: https://gist.github.com/mfriedenhagen/e488235d732b7becda81 It uses the python-keyring module to ask your local password safe. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Tue, Mar 3, 2015 at 7:03 PM, Chris Church <flyingfr...@gmail.com> wrote: > It's not possible in ansible.cfg, but could be set in inventory for all > hosts, e.g. > > [all] > host1 > host2 > > [all:vars] > ansible_sudo_pass=MakeMeASammich > > > > > On Tue, Mar 3, 2015 at 7:30 AM, Simón Muñoz <simon...@gmail.com> wrote: >> >> Hi all, >> >> is it possible to set ansible_sudo_pass in /etc/ansible/ansible.cfg to >> avoid having to enter the sudo pass in a group of local clients? >> >> Thanks in advance, Simon. >> >> -- >> 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-project+unsubscr...@googlegroups.com. >> To post to this group, send email to ansible-project@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/59c13ea7-1c1f-4fd7-abd0-4eaccdb2aacc%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAH%2BKTJ4-KXetLYV6y6X185CxA2ya5W6mVgU59tVJ%2BEX20TNArQ%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK8jvqxA-n%3Dnj58OL16CfkgJUOjg-t0YhpE01w0jNqnzc62ibg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.