Skip to content

aboutbits/ansible-firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Firewall Role

Firewall installation role.

Role Variables

  • firewall_ssh_port: The SSH port that should allowed
  • firewall_rules: A list of additional rules that can be configured

Example Playbook

- hosts: all
  tasks:
    - ansible.builtin.include_role:
        name: ansible-firewall
      vars:
        firewall_rules:
          - port: 80
            protocol: tcp
            rule: allow
          - port: 443
            protocol: tcp
            rule: allow
          - port: 1234
            protocol: udp
            from: 10.1.0.0/24
            rule: allow

Versioning

In order to have a versioning in place and working, create lightweight tags that point to the appropriate minor release versions.

Creating a new minor release:

git tag v1
git push --tags

Replacing an already existing minor release:

git tag -d v1
git push origin :refs/tags/v1
git tag v1
git push --tags

About

Ansible - Firewall Role

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published