Install and allow in firewall systemctl service.
-
defaults
service_name: "" # name of systemd service to start/enable service_pkgs: [] # list of packages required by the service - name: [] # list of packages names to install service_firewalld: # firewalld settings zones: [] # list of firewalld zones - name: services: [] # list of services to allow in firewalld ports: [] # list of ports to allow in firewalld
- service.firewall
- service.state
-
requirements.yml
- name: service src: https://github.com/mario-slowinski/service
-
playbook usage
- hosts: servers gather_facts: yes # to determine ansible_os_family roles: - role: service