Jeff, If memory serves me correctly, you have to use a full path to the config, and cannot use ~
This is due to the ssh command not being executed via a shell, so shell expansions do not happen. I have a similar configuration in my ansible.cfg and it works without issue. On Wed, Feb 15, 2017 at 12:50 PM, Jeff Richards <[email protected]> wrote: > I'm trying to have Ansible use an alternate ssh config file (i.e. not > ~/.ssh/config). > > My understanding was that you achieve this via adding a -F option in > ssh_args in /etc/ansible/ansible.cfg. So my ssh_args now looks like this: > > [ssh_connection] > ssh_args = -C -F ~/.ssh/collated-configs -o ControlMaster=auto -o > ControlPersist=30m -o ControlPath=/tmp/ansible-ssh-%h-%p-%r > > but collated-configs never gets referenced. > > Any thoughts appreciated. > > Jeff > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/082367b7-f684-4061-ba77-742d383ece6d%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/082367b7-f684-4061-ba77-742d383ece6d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8UjAco4imAxAHhw7RZnCNKZtJ7zNf9KAGLCX66Q6HEsw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
