Problem scenario
You are using Ansible, and you receive an error like this:
coolserver.com | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 56: Applying options for *\r\npercent_expand: unknown key %C\r\n",
"unreachable": true
How do you fix this?
Solution
On the Ansible control server, find the ansible.cfg file that is governing the Ansible actions. Back it up. Eliminate the "control_path" stanza underneath the ssh_connection section.
The second line of these two would need to be deleted:
[ssh_connection]
control_path = ~/.ssh/ansible-ssh-%%C