Skip to content

jpmahowald/ansible-role-ufw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-ufw

Safe-ish UFW firewall reload that will reset if connection is lost.

Requirements

Ansible 2.3, for persistant connections.

Role Variables

None.

Dependencies

None.

Example Playbook

After changing some UFW rules, but before reloading, call this role.

- hosts: servers
  pre_tasks:
  - name: Delete OpenSSH rule
    ufw:
      rule: allow
      name: OpenSSH
      delete: True
  roles:
     - { role: jpmahowald.ansible-role-ufw }

License

GPLv3

Author Information

John Mahowald

About

Attempting to revert after firewall changes gone wrong

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages