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:
parent
2c4a14c0e3
commit
6645cc284e
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
#TODO: Use vars instead of hardcoded values
|
#TODO: Use vars instead of hardcoded values
|
||||||
- name: Remove FQDN in /etc/hosts without LAN
|
- name: Remove FQDN in /etc/hosts without LAN
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '^172\.18\.96\.1'
|
regexp: '^172\.18\.96\.1'
|
||||||
state: absent
|
state: absent
|
||||||
when: iiab_lan_iface == "none" and not installing
|
when: iiab_lan_iface == "none" and not installing
|
||||||
|
|
||||||
- name: Configure FQDN in /etc/hosts with LAN
|
- name: Configure FQDN in /etc/hosts with LAN
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '^172\.18\.96\.1'
|
regexp: '^172\.18\.96\.1'
|
||||||
line: '172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
|
line: '172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
|
||||||
state: present
|
state: present
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
- name: Configure FQDN in /etc/hosts appliance mode
|
- name: Configure FQDN in /etc/hosts appliance mode
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '^127\.0\.0\.1'
|
regexp: '^127\.0\.0\.1'
|
||||||
line: '127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
|
line: '127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
|
||||||
owner: root
|
owner: root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue