vn-ansible/playbooks/debian-ct.yaml

28 lines
945 B
YAML

- hosts: all
- name: Config relayhost smtp
import_role:
name: config-relayhost-smtp
when: relay_host_enabled is defined and relay_host_enabled
tags: config-relayhost-smtp_config
- name: Config centralized auth
import_role:
name: config-centralized-auth
when: centralized_auth_enabled is defined and centralized_auth_enabled
tags: config-centralized-auth_config
- name: Set locales
import_role:
name: config-locales
when: locales_enabled is defined and locales_enabled
tags: config-locales_config
- name: Set timezone
import_role:
name: config-tzdata
when: tzdata_enabled is defined and tzdata_enabled
tags: config-tzdata_config
- name: Install and configure fail2ban service
import_role:
name: config-fail2ban
when: fail2ban_enabled is defined and fail2ban_enabled
tags: config-fail2ban_config