Skip to content

Ansible role to install and allow in firewalld a systemd service.

License

Notifications You must be signed in to change notification settings

mario-slowinski/service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

service

Install and allow in firewall systemctl service.

Requirements

Role Variables

  • 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

Dependencies

Tags

  • service.firewall
  • service.state

Example Playbook

  • 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

License

GPL-3.0

Author Information

mario.slowinski@gmail.com

About

Ansible role to install and allow in firewalld a systemd service.

Topics

Resources

License

Stars

Watchers

Forks