README - ansible-roles - A collection of ansible roles I have created over the years.
 (HTM) git clone git://jay.scot/ansible-roles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       README (1157B)
       ---
            1 -= jayscott.firewalld =-
            2 
            3 Allows you to add firewall rules to systems running firewalld.
            4 
            5 Requirements
            6 ------------
            7 
            8 Tested on RHEL 7 and CentOS 7 only.
            9 
           10 Ansible 1.5 or above
           11 
           12 
           13 Role Variables
           14 --------------
           15 
           16 The following variables are used to define a rule:
           17 
           18     firewalld_rules:
           19       name:
           20         port:
           21         protocol:
           22         state:
           23         zone:
           24         permanent:
           25 
           26 For example the default is to allow SSH on the public interface:
           27 
           28     firewalld_rules:
           29       ssh:
           30         port: 22
           31         protocol: tcp
           32         state: enabled
           33         zone: public
           34         permanent: true
           35 
           36 
           37 Handlers
           38 --------
           39 
           40 These are the handlers that are defined in handlers/main.yml.
           41 
           42     restart firewalld
           43 
           44 
           45 Example Playbook
           46 ----------------
           47 
           48     - hosts: server-name
           49       sudo: True
           50       roles:
           51         - jayscott.firewalld
           52       vars:
           53         firewalld_rules:
           54           httpd:
           55             port: 80
           56             protocol: tcp
           57             state: enabled
           58             zone: public
           59             permanent: true
           60           mysqld:
           61             port: 3306
           62             protocol: tcp
           63             state: enabled
           64             zone: public
           65             permanent: true
           66 
           67 
           68 License
           69 -------
           70 
           71 MIT