mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
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
|
@@ -48,6 +48,8 @@ vagrant_local:
|
||||
sharedfolder: ./
|
||||
useVagrantCloud: '1'
|
||||
syncType: nfs
|
||||
hostname: ''
|
||||
docker-hosts-container: 'db elasticsearch redis rabbitmq'
|
||||
nginx:
|
||||
install: '1'
|
||||
docroot: /vagrant
|
||||
|
Reference in New Issue
Block a user