13

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?

2
14

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.

3
  • 1
    Where did you get this name from?
    – hryamzik
    May 26 '17 at 12:50
  • 3
    I got it from the source code May 26 '17 at 16:21
  • Possible values smart|sftp|scp|piped
    – gavenkoa
    Jan 30 '20 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.