Base CentOS7 role for OULib.
A target system running CentOS7x.
In some instances we want to enable or disable IPv6. The following boolean variable controls this:
centos7_ipv6_disable: true
True will disable IPv6 and False will not change the CentOS default and keep iPv6 enabled.
This role disabled IPv6 by default. Please note this is not an idempotent config change. If IPv6 is disabled it will need to be manually enabled.
vpshere tagged tasks expect server_name, server_ip, and broker_ip.
centos7_iptables:
- rule_name: Some SSH Broker
source_ip: 192.168.0.2/32
tcp_port: 22
- rule_name: HTTP
source_ip: 0.0.0.0
tcp_port: 139
- rule_name: HTTPS
source_ip: 0.0.0.0
tcp_port: 443
Written with lastpass-cli in mind. Role information forthcoming
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
Jason Sherman