add Final Infrastructure Setup
This commit is contained in:
commit
7733dde658
174 changed files with 204949 additions and 0 deletions
29
infrastructure/ansible/roles/blackhole/tasks/main.yml
Normal file
29
infrastructure/ansible/roles/blackhole/tasks/main.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue