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

Update hosts.yml

This commit is contained in:
A Holt 2018-10-03 18:20:00 -04:00 committed by GitHub
parent 2c4a14c0e3
commit 6645cc284e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
#TODO: Use vars instead of hardcoded values
- name: Remove FQDN in /etc/hosts without LAN
lineinfile:
dest: /etc/hosts
path: /etc/hosts
regexp: '^172\.18\.96\.1'
state: absent
when: iiab_lan_iface == "none" and not installing
- name: Configure FQDN in /etc/hosts with LAN
lineinfile:
dest: /etc/hosts
path: /etc/hosts
regexp: '^172\.18\.96\.1'
line: '172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
state: present
@ -16,7 +16,7 @@
- name: Configure FQDN in /etc/hosts appliance mode
lineinfile:
dest: /etc/hosts
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: '127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
owner: root