1
0
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:
2023-10-26 23:13:17 +02:00
parent a2083f79d1
commit 37f2b7b130
6 changed files with 109 additions and 0 deletions

View 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"' {} \;

View File

@@ -0,0 +1,8 @@
[Unit]
Description=Mount ISOs
[Service]
ExecStart=/srv/pxe/mount/mount-all.sh
[Install]
WantedBy=multi-user.target