firewall.yml 393 B

1234567891011121314151617
  1. - name: 'Install firewall package (ferm)'
  2. apt:
  3. pkg: '{{ item }}'
  4. state: 'installed'
  5. with_items:
  6. - 'linux-image-{{ facter_architecture }}'
  7. - 'ferm'
  8. - name: 'Install firewall configuration (ferm.conf)'
  9. template:
  10. src: 'ferm/ferm.conf.j2'
  11. dest: '/etc/ferm/ferm.conf'
  12. owner: 'root'
  13. group: 'root'
  14. mode: '0644'
  15. notify:
  16. - 'Apply firewall rules (ferm)'