From e7a12dd826a3701be6345c6c0b2fd9836abc32cf Mon Sep 17 00:00:00 2001 From: fumingwei Date: Wed, 15 Sep 2021 10:21:46 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:TSG-7773:7400=E7=8E=AF=E5=A2=83=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=90=8Etfe=E6=9C=AA=E6=88=90=E5=8A=9F=E5=90=AF?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/tsg-os-provision/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ansible/roles/tsg-os-provision/tasks/main.yml b/ansible/roles/tsg-os-provision/tasks/main.yml index 6e40bf57..b53c04b9 100644 --- a/ansible/roles/tsg-os-provision/tasks/main.yml +++ b/ansible/roles/tsg-os-provision/tasks/main.yml @@ -171,4 +171,11 @@ path: /etc/sudoers backrefs: yes regexp: "^(.*Defaults secure_path =.*)$" - line: '\1:/opt/tsg/tsg-os-provision' \ No newline at end of file + 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' \ No newline at end of file