aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-13 21:03:33 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-13 21:03:33 +0100
commitbc647a09b960723615a51ab6e6155c2556bc2e9d (patch)
tree3d6e2fb593b3a4fb0901c940868ed6369ca0e61e /roles/space_server/tasks
parent5700aa5eece98b1d5cda44ef604b14fb6f4867bb (diff)
downloadlabitat-ansible-bc647a09b960723615a51ab6e6155c2556bc2e9d.tar.gz
labitat-ansible-bc647a09b960723615a51ab6e6155c2556bc2e9d.tar.xz
labitat-ansible-bc647a09b960723615a51ab6e6155c2556bc2e9d.zip
space_server: nftables: clean up rules a bit
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/nftables.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/space_server/tasks/nftables.yml b/roles/space_server/tasks/nftables.yml
index a7fb588..2dc8fce 100644
--- a/roles/space_server/tasks/nftables.yml
+++ b/roles/space_server/tasks/nftables.yml
@@ -11,10 +11,18 @@
tags:
- packages
+- name: Symlink to /etc/nftables.conf
+ file:
+ path: '/etc/sysconfig/nftables.conf'
+ state: link
+ src: '../nftables.conf'
+ force: yes
+ notify:
+ - reload nftables
- name: Configure nftables
copy:
src: nftables/nftables.conf
- dest: '/etc/sysconfig/nftables.conf'
+ dest: '/etc/nftables.conf'
notify:
- reload nftables