- Reorganized Ansible project structure to follow best practices. - Created dedicated directories: , , , , and . - Categorized playbooks into (host-specific) and (service-specific). - Moved all roles into the directory and standardized their naming conventions. - Relocated to for better variable management. - Renamed to to reflect its global variable scope. - Created to correctly set the to the new directory. - Moved and into the directory. - Added to providing explanations for common commands. - Cleaned up directories from all individual roles to centralize version control.
22 lines
467 B
YAML
22 lines
467 B
YAML
---
|
|
- name: Include OS-specific variables.
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
|
|
|
# Fail2Ban
|
|
- include_tasks: fail2ban.yml
|
|
when: security_fail2ban_enabled | bool
|
|
|
|
# SSH
|
|
- include_tasks: ssh.yml
|
|
|
|
# Autoupdate
|
|
- include_tasks: autoupdate-RedHat.yml
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
- security_autoupdate_enabled | bool
|
|
|
|
- include_tasks: autoupdate-Debian.yml
|
|
when:
|
|
- ansible_os_family == 'Debian'
|
|
- security_autoupdate_enabled | bool
|