kolla-ansible -i all-in-one bootstrap-servers returns - Ensure localhost in /etc/hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
kolla-ansible -i all-in-one bootstrap-servers
...
TASK [baremetal : Ensure localhost in /etc/hosts] *******
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'customize_
***
sudo nano /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# BEGIN ANSIBLE GENERATED HOSTS
10.20.20.10 host001
# END ANSIBLE GENERATED HOSTS
***
sudo nano /usr/local/
---
- name: Ensure localhost in /etc/hosts
lineinfile:
dest: /etc/hosts
regexp: "^127.0.0.1.*"
line: "127.0.0.1 localhost"
state: present
become: True
when: customize_etc_hosts | bool
I would like to fix that problem. Maybe someone could help with that?