Skip to content
Snippets Groups Projects
Commit 3116d3af authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

eliminating one more changed

parent 0a0c3673
No related branches found
No related tags found
Loading
...@@ -2,8 +2,17 @@ ...@@ -2,8 +2,17 @@
lineinfile: lineinfile:
args: args:
dest: /etc/cloud/cloud.cfg dest: /etc/cloud/cloud.cfg
line: "preserve_hostname: True" line: "preserve_hostname: false"
regexp: '^preserve_hostname\: false' state: absent
become: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: remove preserve_hostname_false on CentOS
lineinfile:
args:
dest: /etc/cloud/cloud.cfg
line: "preserve_hostname: true"
state: present
become: true become: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment