hyperized.ufw
ufw
Installs ufw and manages application profiles and rules.
Requirements
It's best to use Ansible version 2.5 or newer.
Role Variables
ufw_package_state: presentufw_firewall_state: enabledufw_rules:- rule: allow port: 8080 src: example.com
ufw_applications:- name: Grafana
title: Grafana
description: Dashboard and graph generator
ports:
- 3000/tcp sources:
- 127.0.0.1
- "{{ lookup('dig', 'example.com') }}"
- name: Grafana
title: Grafana
description: Dashboard and graph generator
ports:
Dependencies
- hyperized.package
Example Playbook
- hosts: all
become: yes
roles:
- role: hyperized.ufw
License
MIT
Author Information
Gerben Geijteman gerben@hyperized.net
