diff --git a/playbooks/roles/bifrost-ironic-install/tasks/bootstrap.yml b/playbooks/roles/bifrost-ironic-install/tasks/bootstrap.yml index 1e2846c59..87ba2c8fb 100644 --- a/playbooks/roles/bifrost-ironic-install/tasks/bootstrap.yml +++ b/playbooks/roles/bifrost-ironic-install/tasks/bootstrap.yml @@ -30,7 +30,7 @@ - name: "Start rabbitmq-server" service: name=rabbitmq-server state=started - name: "RabbitMQ - Testing if hostname is defined in /etc/hosts" - command: grep -i "127.0.0.1.*{{ ansible_hostname }}\ localhost" /etc/hosts + command: grep -i "{{ ansible_hostname }}" /etc/hosts ignore_errors: yes register: test_grep_fix_hostname # NOTE(sean-k-mooney) in a docker container this will fail so /etc/hosts