简体   繁体   中英

Set ForwardX11 with ansible ssh config

While connecting to a managed host(netapp device) using command module, I get the below error.

TASK [Gathering Facts] *********************************************************
fatal: [10.20.30.40]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: X11 forwarding request failed", "unreachable": true}

How to set ssh setting "ForwardX11 no" with ansible configuration / ansible-playbook command line option.

I don't want to change ssh settings in user directory.

Try passing ssh arguments in command line ansible-playbook --ssh-common-args='-o ForwardX11=no' <rest_of_the_commands>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM