diff --git a/resources/ansible/roles/vagrant_local/tasks/docker-hosts-container.yml b/resources/ansible/roles/vagrant_local/tasks/docker-hosts-container.yml index 83c6bfeec9..794961f90c 100644 --- a/resources/ansible/roles/vagrant_local/tasks/docker-hosts-container.yml +++ b/resources/ansible/roles/vagrant_local/tasks/docker-hosts-container.yml @@ -1,4 +1,4 @@ --- - name: Update /etc/hosts - lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.docker-hosts-container|default('') }}' owner=root group=root mode=0644 - when: vagrant_local.vm.docker-hosts-container is defined \ No newline at end of file + lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.docker_hosts_container|default('') }}' owner=root group=root mode=0644 + when: vagrant_local.vm.docker_hosts_container is defined \ No newline at end of file diff --git a/resources/ansible/vars/all.yml b/resources/ansible/vars/all.yml index c9fba96c69..5cdf9f6a51 100644 --- a/resources/ansible/vars/all.yml +++ b/resources/ansible/vars/all.yml @@ -49,7 +49,7 @@ vagrant_local: useVagrantCloud: '1' syncType: nfs hostname: '' - docker-hosts-container: 'db elasticsearch redis rabbitmq' + docker_hosts_container: 'db elasticsearch redis rabbitmq' nginx: install: '1' docroot: /vagrant