I want to execute an ansible playbook using Bamboo or jenkins. However, the build failed because I can't pass the ssh password . Have you any idea please ?
您应该在ansible配置文件中使用密钥身份验证和private_key_file选项
在Jenkins中,您可以使用SSH代理插件将凭据提供给Ansible。
thank you for your ansewers , i used a simple solution :
from Bamboo or jenkins i used the sshpass package to execute my playbook .
sshpass -p 'mypassword' ansible-playbook myplaybook.yml --ask-pass -c paramiko -vvvv
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.