Commit fd038662 authored by nanahira's avatar nanahira

fix

parent 115efc07
......@@ -32,7 +32,7 @@ services:
volumes:
- ./apt-cacher-ng:/var/cache/apt-cacher-ng
{% 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:
restart: always
image: wastrachan/tftpd
......
......@@ -13,7 +13,7 @@
dest: '{{ansible_user_dir}}/nextgen-router/services/others/docker-compose.yml'
- name: pxe things
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
docker_compose:
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