Skip to content

Commit

Permalink
follows up on #1042 to remove smart from faq
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Apr 25, 2024
1 parent b3e077d commit c1d7628
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/docsite/rst/reference_appendices/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -803,11 +803,10 @@ In these releases, SCP tries to validate that the path of the file to fetch matc
The validation
fails if the remote file name requires quotes to escape spaces or non-ascii characters in its path. To avoid this error:

* Use SFTP instead of SCP by setting ``scp_if_ssh`` to ``smart`` (which tries SFTP first) or to ``False``. You can do this in one of four ways:
* Rely on the default setting, which is ``smart`` - this works if ``scp_if_ssh`` is not explicitly set anywhere
* Use SFTP instead of SCP by setting ``scp_if_ssh`` to ``False``. You can do this in the following ways:
* Set a :ref:`host variable <host_variables>` or :ref:`group variable <group_variables>` in inventory: ``ansible_scp_if_ssh: False``
* 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``
* Pass an environment variable when you run Ansible: ``ANSIBLE_SCP_IF_SSH=False ansible-playbook``
* Modify your ``ansible.cfg`` file: add ``scp_if_ssh=False`` to the ``[ssh_connection]`` section
* If you must use SCP, set the ``-T`` arg to tell the SCP client to ignore path validation. You can do this in one of three ways:
* Set a :ref:`host variable <host_variables>` or :ref:`group variable <group_variables>`: ``ansible_scp_extra_args=-T``,
Expand Down

0 comments on commit c1d7628

Please sign in to comment.