Commit 269fb18b authored by nanahira's avatar nanahira

remove heavy pxe image

parent dc516598
server {
listen 16980 default_server;
server_name _;
root /pxe/data;
index index.html;
}
......@@ -33,9 +33,9 @@ services:
- ./apt-cacher-ng:/var/cache/apt-cacher-ng
{% endif %}
{% if dnsmasq.pxe is defined and dnsmasq.pxe == "localhost" %}
pxe:
pxe-tftp:
restart: always
image: linuxserver/netbootxyz
image: wastrachan/tftpd
environment:
PUID: {{ansible_user_uid}}
PGID: {{ansible_user_gid}}
......@@ -45,10 +45,16 @@ services:
- '{{ br.address | regex_replace("/\d+$", "") }}:69:69/udp'
{% endif %}
{% endfor %}
- '{{services.address}}:16980:80'
volumes:
- ./pxe/data:/assets:ro
- ./pxe/menus:/config/menus:ro
- ./pxe/menus:/data
pxe-nginx:
restart: always
image: git-registry.mycard.moe/nanahira/docker-nginx-plus
ports:
- '{{services.address}}:16980:16980'
volumes:
- ./pxe/data:/pxe/data:ro
- ./pxe/nginx-conf:/etc/nginx/conf.d:ro
{% endif %}
{% if services.ddns is defined and services.ddns %}
{% for instance in services.ddns %}
......
......@@ -19,9 +19,9 @@
project_src: '{{ansible_user_dir}}/nextgen-router/services/others'
remove_orphans: true
handlers:
- name: restart_pxe
- name: restart_pxe_nginx
docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-router/services/others'
restarted: true
services:
- pxe
- pxe-nginx
......@@ -5,7 +5,12 @@
recurse: true
- name: pxe menus directory
file:
path: '{{ansible_user_dir}}/nextgen-router/services/others/pxe/menus/local'
path: '{{ansible_user_dir}}/nextgen-router/services/others/pxe/menus'
state: directory
recurse: true
- name: pxe nginx directory
file:
path: '{{ansible_user_dir}}/nextgen-router/services/others/pxe/nginx-conf'
state: directory
recurse: true
- name: boot.cfg
......@@ -32,3 +37,8 @@
checksum: yes
archive: no
#notify: restart_pxe
- name: pxe nginx conf
template:
src: ../files/pxe/pxe-nginx.conf.j2
dest: '{{ansible_user_dir}}/nextgen-router/services/others/pxe/nginx-conf/pxe.conf'
notify: restart_pxe_nginx
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