How to run an ansible-playbook with a passphrase-protected-ssh-private-key?

后端 未结 3 1334
花落未央
花落未央 2021-01-30 22:26

I have an autoscaling group on Amazon EC2 and I have added my public key when I create AMI with packer so I can run ansible-playbook and ssh to the hos

3条回答
  •  天涯浪人
    2021-01-30 23:18

    I solved it by running ssh-add once and use it like if it's not password protected.

提交回复
热议问题