Files
ansible-role-csf/tasks/main.yml

40 lines
642 B
YAML
Raw Normal View History

2024-08-20 11:11:35 +12:00
---
# csf/tasks/main.yml
- name: include OS-specific variables
include_vars: '{{ item }}'
with_first_found:
2024-08-20 11:32:48 +12:00
- >
{{ ansible_facts.os_family }}-
{{ ansible_facts.distribution_major_version }}.yml
2024-08-20 11:11:35 +12:00
- '{{ 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
2024-08-20 11:32:48 +12:00
enabled: true
2024-08-20 11:11:35 +12:00
loop:
- csf
- lfd
tags:
- csf
- services