Using ansible_ssh_pass variable set by ask_pass in a playbook?

311 views
Skip to first unread message

Sandor Zeestraten

unread,
Apr 8, 2015, 12:10:49 PM4/8/15
to ansible...@googlegroups.com
Hi, is there a way to reuse the ansible_ssh_pass variable in playbook when set by ask_pass in the configuration file or via CLI?

As I'm already using ask_pass and ask_sudo_pass in the config for the SSH connection, I'd like to use the password credentials from those prompts further in a playbook.

Regards,
SZ

Brian Coca

unread,
Apr 9, 2015, 8:53:52 AM4/9/15
to ansible...@googlegroups.com
passwords are not something we expose to the plays, I'm not sure we
would want to as this can open concerns, specially with 3rd party
roles you don't audit for changes (new task publishes password in irc
....).


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages