firewall.yml 395 B

123456789101112
  1. - name: Install firewall package (ferm)
  2. apt: pkg={{ item }} state=installed update_cache=yes
  3. with_items:
  4. - linux-image-{{ facter_architecture }}
  5. - ferm
  6. when: with_firewall
  7. - name: Install firewall configuration (ferm.conf)
  8. template: src=ferm/ferm.conf.j2 dest=/etc/ferm/ferm.conf owner=root group=root mode=0644
  9. notify:
  10. - Apply firewall rules (ferm)
  11. when: with_firewall