New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove reference of scp_if_ssh option #1346
base: devel
Are you sure you want to change the base?
Conversation
* scp_if_ssh is removed in Ansible 2.17, remove the references Fixes: ansible#1341 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Maxwell G <maxwell@gtmx.me>
* Set an environment variable on your control node: ``export ANSIBLE_SCP_IF_SSH=False`` | ||
* Pass an environment variable when you run Ansible: ``ANSIBLE_SCP_IF_SSH=smart ansible-playbook`` | ||
* Modify your ``ansible.cfg`` file: add ``scp_if_ssh=False`` to the ``[ssh_connection]`` section | ||
* Use SFTP instead of SCP by setting ``ssh_transfer_method`` to ``smart`` (which tries SFTP first). You can do this in one of four ways: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smart
is the default, so people should not need to set it.
SFTP is the optimal transfer method, from a security, speed and reliability perspective. To ensure you use it, check that you are doing one of the following:
* Set a :ref:`host variable <host_variables>` or :ref:`group variable <group_variables>` in inventory: ``ansible_ssh_transfer_method: smart`` | ||
* Set an environment variable on your control node: ``export ANSIBLE_SSH_TRANSFER_METHOD=smart`` | ||
* Pass an environment variable when you run Ansible: ``ANSIBLE_SSH_TRANSFER_METHOD=smart ansible-playbook`` | ||
* Modify your ``ansible.cfg`` file: add ``ssh_transfer_method=smart`` to the ``[ssh_connection]`` section |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would explain the difference between setting to smart
and to sftp
.
All of the following should default to smart
to ensure backwards compatibility, it tries sftp, scp and dd over pipes , in that order. But if you would prefer to fail if SFTP is not used, set directly to sftp
.
SUMMARY
Fixes: #1341
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE