It's simple to set this variable in an ansible.cfg but it makes sense only for hosts that do not have sftp (and most likely python as well). So I have a group for routers – is it possible to set this variable in group_vars?
Asked
Active
Viewed 4,673 times
14
-
My understanding from the documentation is that you cannot; but did you try as explained in http://docs.ansible.com/intro_inventory.html#group-variables? – Antonis Christofides Dec 11 '14 at 20:35
-
1Tried this: `[routers:vars]` `scp_if_ssh = True` `ansible_scp_if_ssh = True` Doesn't work. – hryamzik Dec 12 '14 at 23:42
1 Answers
15
I'm not sure about group vars but you can set that option from the inventory file via ansible_ssh_transfer_method=scp
.
Might also work for group vars.
Checked with version 2.3 of Ansible.

chicks
- 3,793
- 10
- 27
- 36

user1636717
- 166
- 2
- 3