Files
ansible-role-csf/tasks/main.yml
Aaron Guise d4366fef2a
Some checks failed
CI / lint (push) Failing after 2m15s
CI / release (push) Has been skipped
CI / notify (push) Has been skipped
feat: Initial Project 🎉
2024-08-20 11:11:35 +12:00

38 lines
628 B
YAML

---
# csf/tasks/main.yml
- name: include OS-specific variables
include_vars: '{{ item }}'
with_first_found:
- '{{ ansible_facts.os_family }}-{{ ansible_facts.distribution_major_version }}.yml'
- '{{ ansible_facts.os_family }}.yml'
- 'main.yml'
tags:
- csf
- vars
- packages
- import_tasks: disable_firewall.yml
tags:
- csf
- import_tasks: install.yml
tags:
- csf
- import_tasks: configure.yml
tags:
- csf
- name: ensure csf/lfd started/enabled
service:
name: '{{ item }}'
state: started
enabled: yes
loop:
- csf
- lfd
tags:
- csf
- services