From 34d96ea5ca86e2740960f2a785dc9f47baf56883 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 18:33:25 +0100 Subject: Disable cloud-init automated hostname updating --- roles/base/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roles/base/tasks') diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 37bce1f..c4268ab 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -13,6 +13,8 @@ - service: name=chronyd state=running enabled=yes +- copy: dest=/etc/cloud/cloud.cfg.d/06_preserve_hostname.cfg content="preserve_hostname: true" + - name: install firewalld on centos7 yum: pkg=firewalld state=installed when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7' -- cgit