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: ...@@ -33,9 +33,9 @@ services:
- ./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" %}
pxe: pxe-tftp:
restart: always restart: always
image: linuxserver/netbootxyz image: wastrachan/tftpd
environment: environment:
PUID: {{ansible_user_uid}} PUID: {{ansible_user_uid}}
PGID: {{ansible_user_gid}} PGID: {{ansible_user_gid}}
...@@ -45,10 +45,16 @@ services: ...@@ -45,10 +45,16 @@ services:
- '{{ br.address | regex_replace("/\d+$", "") }}:69:69/udp' - '{{ br.address | regex_replace("/\d+$", "") }}:69:69/udp'
{% endif %} {% endif %}
{% endfor %} {% endfor %}
- '{{services.address}}:16980:80'
volumes: volumes:
- ./pxe/data:/assets:ro - ./pxe/menus:/data
- ./pxe/menus:/config/menus:ro 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 %} {% endif %}
{% if services.ddns is defined and services.ddns %} {% if services.ddns is defined and services.ddns %}
{% for instance in services.ddns %} {% for instance in services.ddns %}
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
project_src: '{{ansible_user_dir}}/nextgen-router/services/others' project_src: '{{ansible_user_dir}}/nextgen-router/services/others'
remove_orphans: true remove_orphans: true
handlers: handlers:
- name: restart_pxe - name: restart_pxe_nginx
docker_compose: docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-router/services/others' project_src: '{{ansible_user_dir}}/nextgen-router/services/others'
restarted: true restarted: true
services: services:
- pxe - pxe-nginx
...@@ -5,7 +5,12 @@ ...@@ -5,7 +5,12 @@
recurse: true recurse: true
- name: pxe menus directory - name: pxe menus directory
file: 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 state: directory
recurse: true recurse: true
- name: boot.cfg - name: boot.cfg
...@@ -32,3 +37,8 @@ ...@@ -32,3 +37,8 @@
checksum: yes checksum: yes
archive: no archive: no
#notify: restart_pxe #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