4 ms·
Could anyone comment about whether any file-related Ansible modules use scp by default instead of sftp?
by kakarot 8y ago
Could anyone comment about whether any file-related Ansible modules use scp by default instead of sftp?
- evgen 8y agoI believe you need to set scp_if_ssh = True in ansible.cfg for scp to ever be used, even if sftp is not available on the remote host.
- jabl 8y agoNowadays ansible uses a sort-of 'smart' method by default, where it first tries to use sftp, and if that fails, falls back to scp. See https://docs.ansible.com/ansible/latest/plugins/connection/ssh.html https://docs.ansible.com/ansible/latest/plugins/connection/s...