/[pdpsoft]/trunk/egi-pilot/robotCA/DS/ansible/roles/cafrontend/tasks/iptables.yml
ViewVC logotype

Contents of /trunk/egi-pilot/robotCA/DS/ansible/roles/cafrontend/tasks/iptables.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2926 - (show annotations) (download) (as text)
Wed Mar 23 11:33:28 2016 UTC (6 years, 4 months ago) by msalle
File MIME type: text/x-yaml
File size: 844 byte(s)
Split access task into access and iptables tasks.

1 ---
2
3 # Iptables Setup
4
5 - name: add iptables config
6 template:
7 src: iptables.j2
8 dest: "/etc/sysconfig/iptables"
9 owner: "root"
10 group: "root"
11 mode: 0600
12 backup: yes
13 notify: restart iptables
14 # register: iptables_config
15
16 #- name: restart iptables
17 # service: name=iptables state=restarted enabled=yes
18 # when: iptables_config.changed
19
20 - name: add ip6tables config
21 template:
22 src: ip6tables.j2
23 dest: "/etc/sysconfig/ip6tables"
24 owner: "root"
25 group: "root"
26 mode: 0600
27 backup: yes
28 notify: restart ip6tables
29 # register: ip6tables_config
30
31 #- name: restart ip6tables
32 # service: name=ip6tables state=restarted enabled=yes
33 # when: ip6tables_config.changed
34
35 #- name: restart networking
36 # service: name=network state=restarted enabled=yes
37 # when: iptables_config.changed or ip6tables_config.changed
38

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28