firewall.yml 417 B

123456789101112131415161718
  1. - name: 'Install firewall package (ferm)'
  2. apt:
  3. pkg: '{{ item }}'
  4. state: 'installed'
  5. update_cache: 'yes'
  6. with_items:
  7. - 'linux-image-{{ facter_architecture }}'
  8. - 'ferm'
  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)'