2016-11-07 14:00:57 +01:00
|
|
|
---
|
2017-08-22 00:42:14 +02:00
|
|
|
|
2018-04-20 14:38:08 +02:00
|
|
|
- name: "System compatibility checks"
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- ansible_distribution == "Debian"
|
2020-02-25 10:45:35 +01:00
|
|
|
- ansible_distribution_major_version is version('8', '>=')
|
2017-08-22 00:42:14 +02:00
|
|
|
msg: only compatible with Debian >= 8
|
|
|
|
|
2017-10-04 23:32:27 +02:00
|
|
|
- name: Apt configuration
|
2017-10-10 16:35:23 +02:00
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/apt
|
2017-10-10 16:35:23 +02:00
|
|
|
vars:
|
|
|
|
apt_install_basics: "{{ evolinux_apt_replace_default_sources }}"
|
|
|
|
apt_install_evolix_public: "{{ evolinux_apt_public_sources }}"
|
2022-01-25 18:25:47 +01:00
|
|
|
apt_upgrade: "{{ evolinux_apt_upgrade }}"
|
2023-03-18 18:50:06 +01:00
|
|
|
apt_basics_components: "{{ (ansible_virtualization_role == 'host') | ternary('main contrib non-free', 'main') }}"
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_apt_include | bool
|
2017-10-04 23:32:27 +02:00
|
|
|
|
|
|
|
- name: /etc versioning with Git
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/etc-git
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_etcgit_include | bool
|
2017-10-04 23:32:27 +02:00
|
|
|
|
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
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_etcevolinux_include | bool
|
2018-01-02 19:38:46 +01:00
|
|
|
|
2016-11-07 14:00:57 +01:00
|
|
|
- name: Hostname
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: hostname.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_hostname_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: Kernel tuning
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: kernel.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_kernel_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: Fstab configuration
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: fstab.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_fstab_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
2016-12-21 14:55:20 +01:00
|
|
|
- name: Packages
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: packages.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_packages_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: System settings
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: system.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_system_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
2018-03-15 12:04:24 +01:00
|
|
|
- name: Minifirewall
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/minifirewall
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_minifirewall_include | bool
|
2018-03-15 12:04:24 +01:00
|
|
|
|
2017-10-05 23:55:34 +02:00
|
|
|
- name: Evomaintenance
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/evomaintenance
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_evomaintenance_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
2023-03-18 18:37:58 +01:00
|
|
|
- name: SSH configuration (single file)
|
|
|
|
import_tasks: ssh.single-file.yml
|
|
|
|
when:
|
|
|
|
- ansible_distribution_major_version is version('12', '<')
|
|
|
|
- evolinux_ssh_include | bool
|
|
|
|
|
|
|
|
- name: SSH configuration (included-files)
|
|
|
|
import_tasks: ssh.included-files.yml
|
|
|
|
when:
|
|
|
|
- ansible_distribution_major_version is version('12', '>=')
|
|
|
|
- evolinux_ssh_include | bool
|
2021-05-13 15:23:05 +02:00
|
|
|
|
2017-10-10 21:58:03 +02:00
|
|
|
### disabled because of a memory leak
|
2017-10-10 20:52:49 +02:00
|
|
|
# - name: Create evolinux users
|
|
|
|
# include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
# name: evolix/evolinux-users
|
2017-10-10 20:52:49 +02:00
|
|
|
# when: evolinux_users_include
|
2017-10-05 23:55:34 +02:00
|
|
|
|
|
|
|
- name: Root user configuration
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: root.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_root_include | bool
|
2017-10-05 23:55:34 +02:00
|
|
|
|
2016-12-21 14:55:20 +01:00
|
|
|
- name: Postfix
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: postfix.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_postfix_include | bool
|
2016-12-21 14:55:20 +01:00
|
|
|
|
2016-11-07 14:00:57 +01:00
|
|
|
- name: Logs management
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: logs.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_logs_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: Default index page
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: default_www.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_default_www_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- 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"
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: Customize for Online.net
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: provider_online.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_provider_online_include | bool
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: Customize for Orange FCE
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: provider_orange_fce.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_provider_orange_fce_include | bool
|
2017-07-19 16:03:36 +02:00
|
|
|
|
2019-10-30 13:48:09 +01:00
|
|
|
- name: Override Log2mail service
|
2023-03-18 18:35:54 +01:00
|
|
|
import_tasks: log2mail.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_log2mail_include | bool
|
2017-10-07 18:13:52 +02:00
|
|
|
|
2023-03-18 18:35:54 +01:00
|
|
|
- import_tasks: motd.yml
|
2021-12-10 11:37:33 +01:00
|
|
|
when: evolinux_motd_include | bool
|
2018-11-30 15:14:39 +01:00
|
|
|
|
2023-03-18 18:35:54 +01:00
|
|
|
- import_tasks: utils.yml
|
2022-10-11 13:37:21 +02:00
|
|
|
when: evolinux_utils_include | bool
|
2018-11-30 15:14:39 +01:00
|
|
|
|
2017-10-07 18:13:52 +02:00
|
|
|
- name: Munin
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/munin
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_munin_include | bool
|
2017-10-07 18:13:52 +02:00
|
|
|
|
|
|
|
- name: Nagios/NRPE
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/nagios-nrpe
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_nagios_nrpe_include | bool
|
2017-10-07 18:13:52 +02:00
|
|
|
|
|
|
|
- name: fail2ban
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/fail2ban
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_fail2ban_include | bool
|
2017-10-07 18:13:52 +02:00
|
|
|
|
2020-03-09 17:01:38 +01:00
|
|
|
- name: Evocheck
|
|
|
|
include_role:
|
|
|
|
name: evolix/evocheck
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_evocheck_include | bool
|
2020-03-09 17:01:38 +01:00
|
|
|
|
2017-10-07 18:13:52 +02:00
|
|
|
- name: Listupgrade
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/listupgrade
|
2021-05-09 23:06:42 +02:00
|
|
|
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
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_generateldif_include | bool
|