Ansible SSH forwarding doesn't seem to work with Vagrant

前端 未结 6 1291
Happy的楠姐
Happy的楠姐 2021-01-31 04:17

OK, strange question. I have SSH forwarding working with Vagrant. But I\'m trying to get it working when using Ansible as a Vagrant provisioner.

I found out exactly what

6条回答
  •  醉梦人生
    2021-01-31 04:54

    You can simply add this line to your Vagrantfile to enable the ssh forwarding:

    config.ssh.forward_agent = true
    

    Note: Don't forget to execute the task with become: false

    Hope, this will help.

提交回复
热议问题