ansible-playbook?
maybe use_ssh_args is answer on your question
i think it does not work
when use command task
playbook
When I use synchronize in the playbook to do file push, my terminal prompts, I need to enter the password, but the pem file I use..
you can use command task only, command + rsync
https://docs.ansible.com/ansible/2.4/synchronize_module.html#synopsis
you mean ,,synchronize is not support in playbook?
no, you can use synchronize in playbook, but you can't use all options rsync in synchronize command )
yes i know ,,If I need to use synchronize in the playbook, and ansible wants to use the pem file to connect to the host node, how do I do
Обсуждают сегодня