diff --git a/group_vars/ceph.yml b/group_vars/ceph.yml deleted file mode 100644 index 046244b3..00000000 --- a/group_vars/ceph.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - ### oefenweb.ufw - ufw_rules: - - rule: allow - interface: ens18 - - rule: allow - interface: ens19 diff --git a/group_vars/virt.yml b/group_vars/virt.yml index a03611ab..bdccf510 100644 --- a/group_vars/virt.yml +++ b/group_vars/virt.yml @@ -30,6 +30,7 @@ ONBATTERYDELAY: 10 BATTERYLEVEL: 50 MINUTES: 10 + NOLOGON: disable ### mgrote.zfs_tools zfs_arc_max: "12884901888" zfs_pool: diff --git a/roles/mgrote.apcupsd/README.md b/roles/mgrote.apcupsd/README.md index 5f538dc7..c3c65f3e 100644 --- a/roles/mgrote.apcupsd/README.md +++ b/roles/mgrote.apcupsd/README.md @@ -3,6 +3,7 @@ ### Beschreibung Installiert APCUPSD fuer eine APC UPS mit USB Verbindung. Benoetigt mgrote.postfix-gmail. +https://linux.die.net/man/5/apcupsd.conf ### Funktioniert auf - [x] ProxMox 6.1 @@ -19,3 +20,6 @@ BATTERYLEVEL: 50 ##### apcupsd will shutdown the system during a power failure when the remaining runtime on batteries as internally calculated by the UPS falls below the specified minutes. MINUTES: 10 + +##### Specifies when apcupsd should create the nologon file to prevent users from logging on to the system. +NOLOGON: always diff --git a/roles/mgrote.apcupsd/defaults/main.yml b/roles/mgrote.apcupsd/defaults/main.yml index ac3d1d33..1c7b122b 100644 --- a/roles/mgrote.apcupsd/defaults/main.yml +++ b/roles/mgrote.apcupsd/defaults/main.yml @@ -2,3 +2,4 @@ ONBATTERYDELAY: 10 BATTERYLEVEL: 50 MINUTES: 10 + NOLOGON: always diff --git a/roles/mgrote.apcupsd/tasks/main.yml b/roles/mgrote.apcupsd/tasks/main.yml index 8b92968b..e0d35842 100644 --- a/roles/mgrote.apcupsd/tasks/main.yml +++ b/roles/mgrote.apcupsd/tasks/main.yml @@ -27,4 +27,4 @@ ansible.builtin.template: src: "apcupsd.conf" dest: "/etc/apcupsd/apcupsd.conf" - notify: restart_apcupsd #benachrchtigt handlers/main.yml-restart-apcupsd_restart um den dient neuzustarten, nur wenn hier status "changed" ausgeworfen wird" + notify: restart_apcupsd #benachrichtigt handlers/main.yml-restart-apcupsd_restart um den dient neuzustarten, nur wenn hier status "changed" ausgeworfen wird" diff --git a/roles/mgrote.apcupsd/templates/apcupsd.conf b/roles/mgrote.apcupsd/templates/apcupsd.conf index 0b9f9e2b..78c0cc66 100644 --- a/roles/mgrote.apcupsd/templates/apcupsd.conf +++ b/roles/mgrote.apcupsd/templates/apcupsd.conf @@ -10,3 +10,5 @@ UPSNAME APC-BX950U-GR ONBATTERYDELAY {{ ONBATTERYDELAY }} BATTERYLEVEL {{ BATTERYLEVEL }} MINUTES {{ MINUTES }} + +NOLOGON {{ NOLOGON }}