bugfix:TSG-10819:修复在安装ansible 2.12版本后,ansible配置文件中的配置项修改错误的bug
This commit is contained in:
@@ -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'
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user