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: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,075 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 100:20:01 |
| Calls: | 13,798 |
| Calls today: | 1 |
| Files: | 186,990 |
| D/L today: |
8,292 files (2,333M bytes) |
| Messages: | 2,438,700 |