Files
configpolicy/roles/pxe/tasks/main.yml
Dustin C. Hatch a23bb1f043 r/pxe: Add directory for serving kickstarts
Now that kickstart scripts are generated from templates by a Jenkins
job, they need to be stored somewhere besides Gitea.  It makes sense to
serve them from the PXE server, since it's involved in the installation
process anyway (at least for physical machines).   Thus, we need a path
where the generated files can be uploaded by Jenkins and served by
Apache.
2025-07-12 16:12:23 -05:00

62 lines
1.1 KiB
YAML

- name: ensure pxeadmins group exists
group:
name: pxeadmins
state: present
tags:
- group
- name: ensure pxeadmins can write to tftpboot directory
acl:
path: /var/lib/tftpboot
entity: pxeadmins
etype: group
permissions: rwX
recursive: True
default: '{{ item == "default" }}'
state: present
loop:
- default
- current
tags:
- permissions
- name: ensure pxeadmins can write to nbd directory
acl:
path: /var/lib/nbd
entity: pxeadmins
etype: group
permissions: rwX
recursive: True
default: '{{ item == "default" }}'
state: present
loop:
- default
- current
tags:
- permissions
- name: ensure kickstart www directory exists
file:
path: /var/www/html/kickstart
owner: root
group: root
mode: u=rwx,go=rx
state: directory
tags:
- kickstart
- name: ensure pxeadmins can write to kickstart directory
acl:
path: /var/www/html/kickstart
entity: pxeadmins
etype: group
permissions: rwX
recursive: True
default: '{{ item == "default" }}'
state: present
loop:
- default
- current
tags:
- kickstart
- permissions