mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-20 21:23:31 +02:00
Add gluebuddy role
This commit is contained in:
parent
fc3f03b674
commit
c1eca93498
25
roles/gluebuddy/files/gluebuddy.service
Normal file
25
roles/gluebuddy/files/gluebuddy.service
Normal file
@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=gluebuddy service
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/gluebuddy
|
||||
|
||||
DynamicUsers=true
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHostname=true
|
||||
RestrictRealtime=true
|
||||
CapabilityBoundingSet=
|
||||
MemoryDenyWriteExecute=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
10
roles/gluebuddy/files/gluebuddy.timer
Normal file
10
roles/gluebuddy/files/gluebuddy.timer
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=gluebuddy timer
|
||||
|
||||
[Timer]
|
||||
OnUnitActiveSec=10min
|
||||
OnBootSec=5min
|
||||
RandomizedDelaySec=1min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
7
roles/gluebuddy/tasks/main.yml
Normal file
7
roles/gluebuddy/tasks/main.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
- name: install systemd service/timer
|
||||
copy: src={{ item }} dest="/etc/systemd/system/{{ item }}" owner=root group=root mode=0644
|
||||
with_items:
|
||||
- gluebuddy.service
|
||||
- gluebuddy.timer
|
Loading…
Reference in New Issue
Block a user