Skip to content

How to pass SSH user name and password using the Ansible pack #5432

Answered by amanda11
mmMOLINARI asked this question in Operations
Discussion options

You must be logged in to vote

Which ansible.cfg have you altered, is it for the user that StackStorm actions run as?

Alternatively you could pass using the env parameter, e.g.

st2 run ansible.playbook playbook=/home/awxuser/icx_facts.yml inventory_file="/home/awxuser/hosts" user=admin private_key=~/.ssh/known_hosts env='{"ANSIBLE_HOST_KEY_CHECKING":"False"}'

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mmMOLINARI
Comment options

Answer selected by mmMOLINARI
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants