From: David Galloway Date: Mon, 9 Feb 2026 18:42:16 +0000 (-0500) Subject: testnode: Stop rewriting /etc/hosts X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4db34b4d25c0ea8196aad185db3fcbe6bc0ce12a;p=ceph-cm-ansible.git testnode: Stop rewriting /etc/hosts We handle this in prep-fog-capture now by writing /etc/hosts from scratch. Signed-off-by: David Galloway --- diff --git a/roles/testnode/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index f51e68a1..d52e8926 100644 --- a/roles/testnode/tasks/apt_systems.yml +++ b/roles/testnode/tasks/apt_systems.yml @@ -87,11 +87,6 @@ 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 index 005ab0ce..00000000 --- a/roles/testnode/tasks/static_ip.yml +++ /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