29 lines
627 B
YAML
29 lines
627 B
YAML
- name: Kopiere Blackhole Script
|
|
template:
|
|
src: blackhole.sh.j2
|
|
dest: /usr/local/bin/blackhole.sh
|
|
mode: "0755"
|
|
|
|
- name: Deploye Systemd Service für Blackhole
|
|
copy:
|
|
dest: /etc/systemd/system/blackhole.service
|
|
content: |
|
|
[Unit]
|
|
Description=Thesis Blackhole Service (Cleanup)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/blackhole.sh
|
|
Restart=always
|
|
User=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
- name: Starte Blackhole Service
|
|
systemd:
|
|
name: blackhole
|
|
state: started
|
|
enabled: yes
|
|
daemon_reload: yes
|