{"id":16149995,"url":"https://github.com/markahesketh/ansible-role-ufw","last_synced_at":"2026-05-09T14:32:33.607Z","repository":{"id":69999448,"uuid":"106854730","full_name":"markahesketh/ansible-role-ufw","owner":"markahesketh","description":"Ansible role to manage UFW, a firewall configuration tool.","archived":false,"fork":false,"pushed_at":"2018-11-27T09:38:50.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T04:31:33.244Z","etag":null,"topics":["ansible","ansible-role","ufw","ufw-firewall"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/markahesketh/ufw/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markahesketh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-13T17:35:48.000Z","updated_at":"2017-10-13T19:51:23.000Z","dependencies_parsed_at":"2023-03-11T07:43:15.309Z","dependency_job_id":null,"html_url":"https://github.com/markahesketh/ansible-role-ufw","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markahesketh%2Fansible-role-ufw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markahesketh%2Fansible-role-ufw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markahesketh%2Fansible-role-ufw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markahesketh%2Fansible-role-ufw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markahesketh","download_url":"https://codeload.github.com/markahesketh/ansible-role-ufw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247558656,"owners_count":20958197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","ufw","ufw-firewall"],"created_at":"2024-10-10T00:46:25.024Z","updated_at":"2026-05-09T14:32:33.559Z","avatar_url":"https://github.com/markahesketh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: UFW\n\n[![Build Status](https://travis-ci.org/markahesketh/ansible-role-ufw.svg?branch=master)](https://travis-ci.org/markahesketh/ansible-role-ufw)\n\nAnsible role to manage UFW (Uncomplicated Firewall), a firewall configuration tool for Ubuntu/Debian systems.\n\n## Installation\n\n```\nansible-galaxy install markahesketh.ufw\n```\n\n## Role Variables\n\nDefault values are listed below (see [`defaults/main.yml`](defaults/main.yml)):\n\n```yml\nufw_default_policy: deny\n\nufw_rules:\n  - to_port: 22\n    rule: limit\n  - to_port: 80\n    rule: allow\n  - to_port: 443\n    rule: allow\n```\n\nThe `ufw_rules` variable is an array of objects, with the following options from the [UFW module](http://docs.ansible.com/ansible/latest/ufw_module.html):\n\n```yml\nufw_rules:\n  - to_port:\n    rule:\n    proto:\n    to_ip:\n    from_port:\n    from_ip:\n    interface:\n    direction:\n    log:\n```\n\nYou can specify the firewall's default policy with the `ufw_default_policy` variable, which accepts `allow`, `deny` and `reject ` as options.\n\n```yml\nufw_default_policy: \"allow|deny|reject\"\n```\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n```yml\n- hosts: web\n  roles:\n    - markahesketh.ufw\n```\n\n## Testing\n\n    molecule test\n\nRequires [Molecule](https://molecule.readthedocs.io/en/latest/) and [Docker](https://docs.docker.com/engine/installation/).\n\n## License\n\nThis role is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).\n\n## Author\n\nBy [Mark Hesketh](https://www.markhesketh.co.uk/), a web developer from Manchester, UK.\n\n* Blog: [markhesketh.co.uk](https://www.markhesketh.co.uk/)\n* Twitter: [twitter.com/markahesketh](https://www.twitter.com/markahesketh/)\n* GitHub: [github.com/markahesketh](http://www.github.com/heskethm/)\n* Email: [contact@markhesketh.co.uk](mailto:contact@markhesketh.co.uk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkahesketh%2Fansible-role-ufw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkahesketh%2Fansible-role-ufw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkahesketh%2Fansible-role-ufw/lists"}