Difference between revisions of "Modify Ansible configuration to reuse ssh connections"
Jump to navigation
Jump to search
(Created page with "Modify ssh client Ansible uses to connect: change it from Paramiko to openssh client and modify <code>ControlPersist</code> in <code>ssh_args</code> option. Do it...") |
|||
Line 1: | Line 1: | ||
Modify ssh client Ansible uses to connect: change it from Paramiko to [[openssh client]] and modify <code>[[ControlPersist]]</code> in <code>[[ssh_args]]</code> option. Do it in your <code>[[ansible.cfg]]</code> file. (Note than Ansible will use a different <code>ControlPath</code> that your openssh configuration. Default to: <code>~/.ansible/cp</code>) | Modify ssh client Ansible uses to connect: change it from Paramiko to [[openssh client]] and modify <code>[[ControlPersist]]</code> in <code>[[ssh_args]]</code> option. Do it in your <code>[[ansible.cfg]]</code> file. (Note than Ansible will use a different <code>ControlPath</code> that your openssh configuration. Default to: <code>~/.ansible/cp</code>) | ||
+ | == Related == | ||
+ | * [[Pipelining]] | ||
== See also == | == See also == |
Latest revision as of 12:04, 4 February 2022
Modify ssh client Ansible uses to connect: change it from Paramiko to openssh client and modify ControlPersist
in ssh_args
option. Do it in your ansible.cfg
file. (Note than Ansible will use a different ControlPath
that your openssh configuration. Default to: ~/.ansible/cp
)
Related[edit]
See also[edit]
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: