mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #2979 from xrousset78800/fix/add-docker-containers-name-on-etc-hosts
PHRAS-2533 Inject containers hostname on /etc/hosts file
This commit is contained in:
@@ -0,0 +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
|
@@ -10,3 +10,5 @@
|
||||
- name: Update /etc/hosts
|
||||
lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.hostname|default('') }}' owner=root group=root mode=0644
|
||||
when: vagrant_local.vm.hostname is defined
|
||||
|
||||
- include: docker-hosts-container.yml
|
Reference in New Issue
Block a user