diff --git a/README.md b/README.md index 0d649e8b3..c4bec76bb 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,6 @@ transport = smart host_key_checking = False nocolor = 1 -# For old versions 1.X -sudo_user = root -sudo_exe = sudo - -# For new versions 2.X become_user = root become_method = sudo @@ -69,9 +64,9 @@ record_host_keys=False [ssh_connection] # Only in systems with OpenSSH support to ControlPersist -ssh_args = -o ControlMaster=auto -o ControlPersist=900s +ssh_args = -o ControlMaster=auto -o ControlPersist=900s -o StrictHostKeyChecking=no # In systems with older versions of OpenSSH (RHEL 6, CentOS 6, SLES 10 or SLES 11) -#ssh_args = +#ssh_args = -o StrictHostKeyChecking=no pipelining = True ``` diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index 21d65f0c4..ab029b5f2 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -157,11 +157,11 @@ when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int < 6) or (ansible_os_family == "Suse" and ansible_distribution_major_version|int < 10) - name: Change ssh_args to set ControlPersist to 15 min in ansible.cfg - ini_file: dest=/etc/ansible/ansible.cfg section=ssh_connection option=ssh_args value="-o ControlMaster=auto -o ControlPersist=900s" + ini_file: dest=/etc/ansible/ansible.cfg section=ssh_connection option=ssh_args value="-o ControlMaster=auto -o ControlPersist=900s -o StrictHostKeyChecking=no" when: ansible_os_family == "Debian" or (ansible_os_family == "RedHat" and ansible_distribution_major_version|int >= 7) or (ansible_os_family == "Suse" and ansible_distribution_major_version|int >= 12) - name: Change ssh_args to remove ControlPersist in REL 6 and older in ansible.cfg - ini_file: dest=/etc/ansible/ansible.cfg section=ssh_connection option=ssh_args value="" + ini_file: dest=/etc/ansible/ansible.cfg section=ssh_connection option=ssh_args value="-o StrictHostKeyChecking=no" when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int < 7) or (ansible_os_family == "Suse" and ansible_distribution_major_version|int < 12) - name: Activate SSH pipelining in ansible.cfg