Commit fd038662 authored by nanahira's avatar nanahira

fix

parent 115efc07
...@@ -32,7 +32,7 @@ services: ...@@ -32,7 +32,7 @@ services:
volumes: volumes:
- ./apt-cacher-ng:/var/cache/apt-cacher-ng - ./apt-cacher-ng:/var/cache/apt-cacher-ng
{% endif %} {% endif %}
{% if dnsmasq.pxe is defined and dnsmasq.pxe == "localhost" %} {% if dnsmasq.pxe is defined and (dnsmasq.pxe == "localhost" or (dnsmasq.pxe.localhost is defined and dnsmasq.pxe.localhost)) %}
pxe-tftp: pxe-tftp:
restart: always restart: always
image: wastrachan/tftpd image: wastrachan/tftpd
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
dest: '{{ansible_user_dir}}/nextgen-router/services/others/docker-compose.yml' dest: '{{ansible_user_dir}}/nextgen-router/services/others/docker-compose.yml'
- name: pxe things - name: pxe things
include_tasks: ./tasks/pxe.yaml include_tasks: ./tasks/pxe.yaml
when: dnsmasq.pxe is defined and dnsmasq.pxe == "localhost" when: dnsmasq.pxe is defined and (dnsmasq.pxe == "localhost" or (dnsmasq.pxe.localhost is defined and dnsmasq.pxe.localhost))
- name: start services - name: start services
docker_compose: docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-router/services/others' project_src: '{{ansible_user_dir}}/nextgen-router/services/others'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment