kolla-ansible -i all-in-one bootstrap-servers returns - Ensure localhost in /etc/hosts

Bug #2025337 reported by Sandra K
12
This bug affects 2 people
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_etc_hosts | bool' failed. The error was: No filter named 'bool' found.\n\nThe error appears to be in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensure localhost in /etc/hosts\n ^ here\n"}

***

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/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml

---
- 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?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.