From ab13a1272fc4b138629e0bcedd35451db2d5dc39 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 24 May 2020 13:47:20 +0200 Subject: [PATCH] playbooks/group_bwcloud: Configure preserve hostname for cloud-kernel --- playbooks/group_bwcloud.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/group_bwcloud.yml b/playbooks/group_bwcloud.yml index e1d5877..7b3e9fc 100644 --- a/playbooks/group_bwcloud.yml +++ b/playbooks/group_bwcloud.yml @@ -8,3 +8,11 @@ name: - linux-headers-cloud-amd64 state: present + - name: Configure cloud-kernel to preserve hostname + copy: + content: | + preserve_hostname: yes + dest: "/etc/cloud/cloud.cfg.d/preserve_hostname.cfg" + owner: root + group: root + mode: u=rw,g=r,o=r