mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Clarif FQDN & hostnames added to /etc/hosts
This commit is contained in:
parent
17e8c4ee6e
commit
344a8e8a23
1 changed files with 3 additions and 2 deletions
|
@ -24,11 +24,12 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: is_redhat | bool
|
when: is_redhat | bool
|
||||||
|
|
||||||
- name: Put hostnames "127.0.0.1 {{ iiab_hostname }}.{{ iiab_domain }} localhost.localdomain localhost {{ iiab_hostname }} box box.lan" in /etc/hosts
|
# roles/network/tasks/hosts.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"'
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '^127\.0\.0\.1'
|
regexp: '^127\.0\.0\.1'
|
||||||
line: '127.0.0.1 {{ iiab_hostname }}.{{ iiab_domain }} localhost.localdomain localhost {{ iiab_hostname }} box box.lan'
|
line: '127.0.0.1 {{ iiab_hostname }}.{{ iiab_domain }} localhost.localdomain localhost {{ iiab_hostname }} box box.lan'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
Loading…
Reference in a new issue