OULibraries / ansible-role-centos7

Base CentOS7 role for OULib.
MIT License
0 stars 1 forks source link

OULibraries.centos7

Base CentOS7 role for OULib.

Requirements

A target system running CentOS7x.

Role Variables

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

Dependencies

Written with lastpass-cli in mind. Role information forthcoming

Example Playbook

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 }

License

MIT

Author Information

Jason Sherman