blob: 5ee11f7bd75e9f2586dfbc762c38303000269014 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
OS Firewall
===========
OS Firewall manages firewalld and iptables installation.
case.
Note: firewalld is not supported on Atomic Host
https://bugzilla.redhat.com/show_bug.cgi?id=1403331
Requirements
------------
Ansible 2.2
Role Variables
--------------
| Name | Default | |
|---------------------------|---------|----------------------------------------|
| os_firewall_use_firewalld | False | If false, use iptables |
Dependencies
------------
None.
Example Playbook
----------------
Use iptables:
```
---
- hosts: servers
task:
- import_role:
name: os_firewall
vars:
os_firewall_use_firewalld: false
```
Use firewalld:
```
---
- hosts: servers
vars:
tasks:
- import_role:
name: os_firewall
vars:
os_firewall_use_firewalld: true
```
License
-------
Apache License, Version 2.0
Author Information
------------------
Jason DeTiberus - jdetiber@redhat.com
|