1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #2059 from holta/dnsmasq-cleanup

Clean up PR #2051, clarifying remaining mods to /etc/hosts (now that dnsmasq uses /etc/hosts.dnsmasq instead)
This commit is contained in:
A Holt 2019-12-11 01:28:40 -05:00 committed by GitHub
commit b891ac43e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -24,7 +24,7 @@
mode: 0644
when: is_redhat | bool
# roles/network/tasks/hosts.yml ALSO does this:
# roles/network/tasks/hosts.yml [no longer in use] ALSO did this:
- name: 'Put FQDN & hostnames in /etc/hosts: "127.0.0.1 {{ iiab_hostname }}.{{ iiab_domain }} localhost.localdomain localhost {{ iiab_hostname }} box box.lan"'
lineinfile:
path: /etc/hosts

View file

@ -1,3 +1,5 @@
# this (hosts.yml) WAS invoked by roles/network/tasks/main.yml up until 2019-12-10
#TODO: Use vars instead of hardcoded values
- name: Remove FQDN with 172.18.96.1 in /etc/hosts without LAN (if iiab_lan_iface == "none" and not installing)
lineinfile: