]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Stop rewriting /etc/hosts
authorDavid Galloway <david.galloway@ibm.com>
Mon, 9 Feb 2026 18:42:16 +0000 (13:42 -0500)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 18 Feb 2026 17:50:12 +0000 (12:50 -0500)
We handle this in prep-fog-capture now by writing /etc/hosts from scratch.

Signed-off-by: David Galloway <david.galloway@ibm.com>
roles/testnode/tasks/apt_systems.yml
roles/testnode/tasks/static_ip.yml [deleted file]

index f51e68a12c194770d40441f94c6afdc70d2b975c..d52e89263c97801471ef3ca977f26079815e1712 100644 (file)
     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
diff --git a/roles/testnode/tasks/static_ip.yml b/roles/testnode/tasks/static_ip.yml
deleted file mode 100644 (file)
index 005ab0c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- 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