summaryrefslogtreecommitdiffstats
path: root/roles/torrelay/tasks/fw.yml
blob: 66b16b5254fcff0be4b2e24035bfaffe35c09c88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- name: Ouverture du port ORPort
  firewalld:
    port: "{{ orport }}"
    permanent: "{{ item }}"
    state: enabled
  with_items:
    - "true"
    - "false"
  when: orport is defined and orport != httpsport
        and orport != pop3sport

- name: Ouverture du port ORPort
  firewalld: 
    service: "pop3s"
    permanent: "{{ item }}"
    state: enabled
  with_items:
    - "true"
    - "false"
  when: orport is defined and orport != httpsport
        and orport == pop3sport

- name: Ouverture du port DIRPort
  firewalld:
    port: "{{ dirport }}"
    permanent: "{{ item }}"
    state: enabled
  with_items:
    - "true"
    - "false"
  when: dirport is defined and dirport != httpport
        and dirport != pop3port

- name: Ouverture du port DIRPort
  firewalld:
    service: "pop3"
    permanent: "{{ item }}"
    state: enabled
  with_items:
    - "true"
    - "false"
  when: dirport is defined and dirport != httpport
        and dirport == pop3port