mirror of
https://git.libreschool.org/paspo/brasatore.git
synced 2025-11-05 12:56:56 +00:00
playbook ansible WIP
This commit is contained in:
9
roles/pxeserver/templates/iso/mount-all.sh
Executable file
9
roles/pxeserver/templates/iso/mount-all.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
montami() {
|
||||
B=$(basename $1)
|
||||
mount "/srv/pxe/iso/$B" "/srv/pxe/mount/$B"
|
||||
echo "mounted '/srv/pxe/iso/$B' on '/srv/pxe/mount/$B'"
|
||||
}
|
||||
export -f montami
|
||||
find /srv/pxe/mount/ -mindepth 1 -maxdepth 1 -type d -exec bash -c 'montami "$0"' {} \;
|
||||
8
roles/pxeserver/templates/iso/mount-isos.service
Normal file
8
roles/pxeserver/templates/iso/mount-isos.service
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Mount ISOs
|
||||
|
||||
[Service]
|
||||
ExecStart=/srv/pxe/mount/mount-all.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user