Refactor pathes to tftp and nginx root
This commit is contained in:
parent
c0c1c28ae3
commit
a135d95e14
|
@ -9,7 +9,7 @@
|
|||
- name: "Copy ipxe"
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/srv/tftp/fai"
|
||||
dest: "{{ tftp_dir }}"
|
||||
remote_src: yes
|
||||
with_items:
|
||||
- "/usr/lib/ipxe/ipxe.efi"
|
||||
|
@ -103,11 +103,11 @@
|
|||
|
||||
{% endfor %}
|
||||
dest: "/srv/tftp/fai/menu.ipxe"
|
||||
dest: "{{ tftp_dir }}/menu.ipxe"
|
||||
mode: '0644'
|
||||
owner: root
|
||||
group: root
|
||||
notify: restart tftpd
|
||||
|
||||
tags:
|
||||
- ipxe
|
||||
- ipxe_menu_write
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
|
||||
|
||||
NFSROOT=/srv/fai/nfsroot
|
||||
TFTPROOT=/srv/tftp/fai
|
||||
TFTPROOT={{ tftp_dir }}
|
||||
NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
|
||||
FAI_DEBOOTSTRAP_OPTS="--exclude=wget"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
root /var/www/html;
|
||||
root {{ nginx_root }};
|
||||
index index.html;
|
||||
server_name _;
|
||||
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
server_net: "{{ server_ip |regex_replace('.[0-9]+$', '') }}"
|
||||
|
||||
fai_download_dir: "/var/www/html/{{ http_mirror_fai_path_prefix }}"
|
||||
ipxe_download_dir: "/var/www/html/{{ http_mirror_ipxe_path_prefix }}"
|
||||
nginx_root: "/var/www/html"
|
||||
fai_download_dir: "{{ nginx_root + '/' + http_mirror_fai_path_prefix }}"
|
||||
ipxe_download_dir: "{{ nginx_root + '/' + http_mirror_ipxe_path_prefix }}"
|
||||
fai_squashfs_path: "{{ fai_download_dir }}/{{ fai_squashfs_file }}"
|
||||
|
||||
http_mirror: "http://{{ server_name }}"
|
||||
|
|
Loading…
Reference in New Issue