ansible-roles/evolinux-base/tasks/main.yml

138 lines
3.3 KiB
YAML
Raw Normal View History

---
- name: "System compatibility checks"
assert:
that:
- ansible_distribution == "Debian"
- ansible_distribution_major_version is version('8', '>=')
msg: only compatible with Debian >= 8
- name: Apt configuration
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/apt
vars:
apt_install_basics: "{{ evolinux_apt_replace_default_sources }}"
apt_install_evolix_public: "{{ evolinux_apt_public_sources }}"
apt_upgrade: "{{ evolinux_apt_upgrade }}"
2023-03-18 18:35:54 +01:00
apt_basics_components: "{{ ansible_virtualization_role == 'host' | ternary('main contrib non-free', 'main') }}"
when: evolinux_apt_include | bool
- name: /etc versioning with Git
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/etc-git
when: evolinux_etcgit_include | bool
2018-01-02 19:38:46 +01:00
- name: /etc/evolinux base
2023-03-18 18:35:54 +01:00
import_tasks: etc-evolinux.yml
when: evolinux_etcevolinux_include | bool
2018-01-02 19:38:46 +01:00
- name: Hostname
2023-03-18 18:35:54 +01:00
import_tasks: hostname.yml
when: evolinux_hostname_include | bool
- name: Kernel tuning
2023-03-18 18:35:54 +01:00
import_tasks: kernel.yml
when: evolinux_kernel_include | bool
- name: Fstab configuration
2023-03-18 18:35:54 +01:00
import_tasks: fstab.yml
when: evolinux_fstab_include | bool
2016-12-21 14:55:20 +01:00
- name: Packages
2023-03-18 18:35:54 +01:00
import_tasks: packages.yml
when: evolinux_packages_include | bool
- name: System settings
2023-03-18 18:35:54 +01:00
import_tasks: system.yml
when: evolinux_system_include | bool
- name: Minifirewall
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/minifirewall
when: evolinux_minifirewall_include | bool
- name: Evomaintenance
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/evomaintenance
when: evolinux_evomaintenance_include | bool
- name: SSH configuration
include: ssh.yml
2021-05-09 23:20:15 +02:00
when: evolinux_ssh_include | bool
2021-05-13 15:23:05 +02:00
### disabled because of a memory leak
# - name: Create evolinux users
# include_role:
2019-11-29 14:00:25 +01:00
# name: evolix/evolinux-users
# when: evolinux_users_include
- name: Root user configuration
2023-03-18 18:35:54 +01:00
import_tasks: root.yml
when: evolinux_root_include | bool
2016-12-21 14:55:20 +01:00
- name: Postfix
2023-03-18 18:35:54 +01:00
import_tasks: postfix.yml
when: evolinux_postfix_include | bool
2016-12-21 14:55:20 +01:00
- name: Logs management
2023-03-18 18:35:54 +01:00
import_tasks: logs.yml
when: evolinux_logs_include | bool
- name: Default index page
2023-03-18 18:35:54 +01:00
import_tasks: default_www.yml
when: evolinux_default_www_include | bool
- name: Hardware drivers and tools
2023-03-18 18:35:54 +01:00
import_tasks: hardware.yml
when:
- evolinux_hardware_include | bool
- ansible_virtualization_role == "host"
- name: Customize for Online.net
2023-03-18 18:35:54 +01:00
import_tasks: provider_online.yml
when: evolinux_provider_online_include | bool
- name: Customize for Orange FCE
2023-03-18 18:35:54 +01:00
import_tasks: provider_orange_fce.yml
when: evolinux_provider_orange_fce_include | bool
2019-10-30 13:48:09 +01:00
- name: Override Log2mail service
2023-03-18 18:35:54 +01:00
import_tasks: log2mail.yml
when: evolinux_log2mail_include | bool
2023-03-18 18:35:54 +01:00
- import_tasks: motd.yml
when: evolinux_motd_include | bool
2023-03-18 18:35:54 +01:00
- import_tasks: utils.yml
when: evolinux_utils_include | bool
- name: Munin
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/munin
when: evolinux_munin_include | bool
- name: Nagios/NRPE
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/nagios-nrpe
when: evolinux_nagios_nrpe_include | bool
- name: fail2ban
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/fail2ban
when: evolinux_fail2ban_include | bool
- name: Evocheck
include_role:
name: evolix/evocheck
when: evolinux_evocheck_include | bool
- name: Listupgrade
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/listupgrade
when: evolinux_listupgrade_include | bool
2017-10-11 12:10:59 +02:00
- name: Generate ldif script
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/generate-ldif
when: evolinux_generateldif_include | bool