mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
PR16 and PR17 -- moodle/templates/install -- /etc/hosts
This commit is contained in:
parent
68243f1a74
commit
3f862da6a2
2 changed files with 7 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
|||
- name: Configure short hostname in /etc/hosts
|
||||
lineinfile: dest=/etc/hosts
|
||||
regexp='^127\.0\.0\.1'
|
||||
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}'
|
||||
line='127.0.0.1 localhost.localdomain localhost box {{ iiab_hostname }}'
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
|
|
@ -16,14 +16,14 @@
|
|||
- name: Configure fqdn in /etc/hosts with LAN
|
||||
lineinfile: dest=/etc/hosts
|
||||
regexp='^172\.18\.96\.1'
|
||||
line='172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }}'
|
||||
line='172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box'
|
||||
state=present
|
||||
when: iiab_lan_iface != "none" and not installing
|
||||
|
||||
- name: Configure fqdn in /etc/hosts appliance mode
|
||||
lineinfile: dest=/etc/hosts
|
||||
regexp='^127\.0\.0\.1'
|
||||
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }}'
|
||||
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box '
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue