summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-firewall/tasks/main.yml
blob: a997d14f864b3195db75e19e897c4e296735a9d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- name: Install firewall
  package:
    name: "{{ firewall.package_name[ansible_facts.os_family] }}"
    state: present

- name: Start and enable firewall
  service:
    name: "{{ firewall.package_name[ansible_facts.os_family] }}"
    state: started
    enabled: true