You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/playbooks/group_bwcloud.yml

23 lines
651 B
YAML

---
- name: Configure bwcloud nodes
hosts: bwcloud_vserver
tasks:
- name: Install special packages for bw cloud nodes
apt:
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
# If something goes wrong with mouting or /etc/hosts, add this back to cloud.cfg using directory:
#mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
#manage_etc_hosts: true