From 18a6c64179d45e94466f0598a49ea34fe23fe3eb Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Wed, 26 Sep 2018 13:24:00 +0200 Subject: space_server: replace blackhole script --- roles/space_server/tasks/blackhole.yml | 40 ---------------------------------- roles/space_server/tasks/main.yml | 2 -- 2 files changed, 42 deletions(-) delete mode 100644 roles/space_server/tasks/blackhole.yml (limited to 'roles/space_server/tasks') diff --git a/roles/space_server/tasks/blackhole.yml b/roles/space_server/tasks/blackhole.yml deleted file mode 100644 index cb139f7..0000000 --- a/roles/space_server/tasks/blackhole.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Create /etc/systemd/scripts - file: - dest: '/etc/systemd/scripts' - state: directory - owner: root - group: root - mode: 0755 -- name: Install blackhole script - copy: - dest: '/etc/systemd/scripts/blackhole.sh' - src: blackhole.sh - owner: root - group: root - mode: 0755 - notify: - - restart blackhole - -- name: Install blackhole service - copy: - dest: '/etc/systemd/system/blackhole.service' - src: blackhole.service - owner: root - group: root - mode: 0644 - -- name: Enable blackhole service - systemd: - name: blackhole.service - enabled: yes - masked: no - state: started - when: not chroot -- name: '- when in chroot' - command: systemctl enable blackhole.service - args: - creates: '/etc/systemd/system/multi-user.target.wants/blackhole.service' - when: chroot - -# vim: set ts=2 sw=2 et: diff --git a/roles/space_server/tasks/main.yml b/roles/space_server/tasks/main.yml index 5b93e60..294d655 100644 --- a/roles/space_server/tasks/main.yml +++ b/roles/space_server/tasks/main.yml @@ -23,8 +23,6 @@ tags: networkd - import_tasks: nftables.yml tags: nftables -- import_tasks: blackhole.yml - tags: blackhole - import_tasks: sshd.yml tags: sshd - import_tasks: bird.yml -- cgit v1.2.1