firewall.yml 465 B

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