Ansible SSH forwarding doesn't seem to work with Vagrant

前端 未结 6 1348
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条回答
  •  萌比男神i
    2021-01-31 04:40

    Here's a workaround:

    Create an ansible.cfg file in the same directory as your Vagrantfile with the following lines:

    [ssh_connection]
    ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes
    

提交回复
热议问题