bugfix:TSG-10819:修复在安装ansible 2.12版本后,ansible配置文件中的配置项修改错误的bug

This commit is contained in:
fumingwei
2022-06-23 14:46:34 +08:00
parent b2a035f2f0
commit 28b26df146
3 changed files with 12 additions and 12 deletions

View File

@@ -117,7 +117,3 @@
systemd:
name: firewalld
enabled: no
- name: "Generate ansiblg.cfg after ansible upgrade in rockylinux8"
shell: ansible-config init > /etc/ansible/ansible.cfg
when: runtime_env == 'TSG-X-P0804'

View File

@@ -66,4 +66,15 @@
- name: "Export MLX5_GLUE_PATH"
lineinfile:
dest: /etc/profile
line: 'export MLX5_GLUE_PATH=/opt/tsg/mrzcpd/lib'
line: 'export MLX5_GLUE_PATH=/opt/tsg/mrzcpd/lib'
- name: "Generate ansiblg.cfg after ansible upgrade in rockylinux8"
shell: ansible-config init --disabled > /etc/ansible/ansible.cfg
when: runtime_env == 'TSG-X-P0804'
- name: 'change ansible hash_behaviour value replace to merge'
lineinfile:
path: /etc/ansible/ansible.cfg
backrefs: yes
regexp: "^(.*hash_behaviour.*=.*replace.*)$"
line: '\1\nhash_behaviour = merge'

View File

@@ -278,10 +278,3 @@
backrefs: yes
regexp: "^(.*Defaults secure_path =.*)$"
line: '\1:/opt/tsg/tsg-os-provision'
- name: 'change ansible hash_behaviour value replace to merge'
lineinfile:
path: /etc/ansible/ansible.cfg
backrefs: yes
regexp: "^(.*#hash_behaviour = replace.*)$"
line: '\1\nhash_behaviour = merge'