I have a working script that creates a thread to execute an ansible
command.
I have a working script that creates a thread to execute an ansible
command.
Up until now, the ansible needed a password for ssh, which was provided
by sshpass -p mypass to the ansible script, like:
sshpass -p mypass ansible-playbook -b -i inv -e hosts=somehost* playbooks/ dosomething.yml -k
Am 19.09.25 um 13:34 schrieb Luis Mendes:
I have a working script that creates a thread to execute an ansibleand why do you not use SSH keys for this?
command.
Up until now, the ansible needed a password for ssh, which was provided
by sshpass -p mypass to the ansible script, like:
sshpass -p mypass ansible-playbook -b -i inv -e hosts=somehost*
playbooks/
dosomething.yml -k
Christian
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 16:19:10 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
3 files (2,681K bytes) |
| Messages: | 184,405 |
| Posted today: | 1 |