SSH agent forwarding doesn't work after upgrading from 1.9 to 2.1

24 views
Skip to first unread message

Mikael Wallin

unread,
Sep 23, 2016, 11:29:55 AM9/23/16
to Ansible Project
I had working playbooks that work with agent forwarding.

I upgraded to ansible 2.1 and I seem not to be able to get agent forwarding to work.


//inventory

[machines]

machine[07:07]


//main.yml

---

- name: Create group

  hosts: machine

  - name: "Add '{{system_group}}' group"

    group: name={{system_group}} state=present

    become: yes


//ansible.cfg

[defaults]

inventory = ./inventory

roles_path = ./roles

host_key_checking = False

ask_sudo_pass = False

retry_files_enabled=False

sudo_flags=-HE


[ssh_connection]

ssh_args=-o ForwardAgent=yes -o ControlPersist=60m -o ControlMaster=auto -o ControlPath=/tmp/ansible-ssh-%h-%p-%r

scp_if_ssh=True

pipelining=True


Anyone who can help?

Reply all
Reply to author
Forward
0 new messages