Skip to content
Snippets Groups Projects
Commit b5db566f authored by Chris Hines's avatar Chris Hines
Browse files

set preserve hostname correctly (yaml format)

parent e10483b1
No related branches found
No related tags found
1 merge request!93Hostname
......@@ -21,7 +21,10 @@
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
- name: set preserve hostname on CentOS
lineinfile: dest=/etc/cloud/cloud.cfg line='preserve_hostname=True'
lineinfile:
args:
dest: /etc/cloud/cloud.cfg
line: "preserve_hostname: True"
sudo: true
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