We handle this in prep-fog-capture now by writing /etc/hosts from scratch.
Signed-off-by: David Galloway <david.galloway@ibm.com>
groups: fuse,kvm,disk
append: yes
-- import_tasks: static_ip.yml
- when:
- - "'vps' not in group_names"
- - not containerized_node
-
- name: Stop apache2
service:
name: apache2
+++ /dev/null
----
-- name: Set up static IP in /etc/hosts.
- lineinfile:
- dest: /etc/hosts
- line: "{{ ansible_default_ipv4['address'] }} {{ ansible_fqdn }} {{ ansible_hostname }}"
- regexp: "^127.0.1.1"
- backrefs: yes
- state: present