Having an issue when using the dynamic inventory gce.py script with a bastion box . ssh config proxying all connections through the bastion: ansible.cf looks like this :
[defaults]
host_key_checking=False
forks=11
ask_sudo_pass=False
timeout=10
[ssh_connection]
ssh_args = -o ControlPersist=15m -F ssh.config -q
scp_if_ssh = True
control_path = ~/.ssh/mux-%%r@%%h:%%p
pipelining=True
and in the ssh.config:
Host bastion
User myuser
HostName XX.XX.XX.XX
ProxyCommand none
IdentityFile credentials/mykey.pem
BatchMode yes
PasswordAuthentication no
Host *
ServerAliveInterval 60
TCPKeepAlive yes
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
ProxyCommand ssh -q -A myuser@XX.XX.XX.XX -i credentials/service -o StrictHostKeyChecking=no nc %h %p
ControlMaster auto
ControlPath ~/.ssh/mux-%r@%h:%p
ControlPersist 8h
IdentityFile credentials/myotherkey.pem
User myuser
the inventory subdir contains the gce.ini and gce.py files which was working before , however trying to run any playbook from this morning results in the following error: