firewall.yml 442 B

12345678910111213141516171819202122
  1. - name: 'Install firewall package (ferm)'
  2. apt:
  3. pkg:
  4. - 'linux-image-{{ facter_architecture }}'
  5. - 'ferm'
  6. state: 'present'
  7. tags:
  8. - 'firewall'
  9. - name: 'Install firewall configuration (ferm.conf)'
  10. template:
  11. src: 'ferm/ferm.conf.j2'
  12. dest: '/etc/ferm/ferm.conf'
  13. owner: 'root'
  14. group: 'root'
  15. mode: '0644'
  16. notify:
  17. - 'Apply firewall rules (ferm)'
  18. tags:
  19. - 'firewall'
  20. # vim: ft=yaml.ansible