1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

remove mods to etc.hosts

This commit is contained in:
George Hunt 2019-12-23 18:37:16 +00:00
parent 67aa4f173b
commit 44b0632f05

View file

@ -16,14 +16,6 @@
state: present
when: not (iiab_lan_iface == "none") and not installing
- name: Remove conflicting FQDN 127.0.0.1 in /etc/hosts placed by roles/0-init/tasks/hostname..yml/ L28
lineinfile:
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: '127.0.0.1 localhost.localdomain localhost'
state: present
when: not (iiab_lan_iface == "none") and not installing
# roles/0-init/tasks/hostname.yml ALSO does this:
- name: 'Put FQDN & hostnames in /etc/hosts: "127.0.0.1 {{ iiab_hostname }}.{{ iiab_domain }} localhost.localdomain localhost {{ iiab_hostname }} box box.lan" (if iiab_lan_iface == "none" and not installing, appliance mode?)'
lineinfile: