Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tasks/includes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
dest="/etc/csf/csf.allow"
regexp="^Include /etc/csf/includes/{{ item.rule }}.allow$"
line="Include /etc/csf/includes/{{ item.rule }}.allow"
with_items: csf_rules
with_items: "{{ csf_rules }}"
when: "csf_rules is defined"
notify: restart csf

# Copy rules across to the system
- name: copy common csf rules
copy: >
template: >
src="rules/common/{{ item.rule }}.allow"
dest="/etc/csf/includes/{{ item.rule }}.allow"
owner=root group=root mode=0600
with_items: csf_rules
with_items: "{{ csf_rules }}"
when: "csf_rules is defined"
notify: restart csf