Extract playbook actions to roles

This commit is contained in:
Pijus Kamandulis committed 2024-05-31 01:17:29 +03:00
1 parent 311d6ce925
commit 5ee8b48ff7
38 files changed
+414 -463

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
---
- name: Configure firewall
template:
src: templates/pf.conf.j2
dest: /etc/pf.conf
validate: pfctl -n -f %s
register: pf
- name: Load config to pf if needed
command: pfctl -f /etc/pf.conf
when: pf.changed