From 710a210ae6f165c2e3ce165d30d27f189311656b Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 18 Mar 2017 15:27:21 +0100 Subject: updated setup_fastd added features: - configure_iptables --- roles/configure_iptables/tasks/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roles/configure_iptables/tasks/main.yml (limited to 'roles/configure_iptables/tasks') diff --git a/roles/configure_iptables/tasks/main.yml b/roles/configure_iptables/tasks/main.yml new file mode 100644 index 0000000..34f6c27 --- /dev/null +++ b/roles/configure_iptables/tasks/main.yml @@ -0,0 +1,26 @@ +--- +- name: copy iptables.rules + copy: + src: iptables.rules + dest: /etc/iptables/iptables.rules + register: iptables_rules + +- name: start and enable iptables service + when: iptables_rules.changed + systemd: + name: iptables.service + enabled: yes + state: reloaded + +- name: copy ip6tables.rules + copy: + src: ip6tables.rules + dest: /etc/iptables/ip6tables.rules + register: ip6tables_rules + +- name: start and enable ip6tables service + when: ip6tables_rules.changed + systemd: + name: ip6tables.service + enabled: yes + state: reloaded -- cgit v1.2.3-54-g00ecf