evolinux-base: tasks groups disabling
This commit is contained in:
parent
17ed9bc28e
commit
e2460c10d1
|
@ -4,11 +4,22 @@ Various tasks for Evolinux setup.
|
||||||
|
|
||||||
## Tasks
|
## Tasks
|
||||||
|
|
||||||
* `system.yml` :
|
* `hostname` :
|
||||||
* `apt.yml` :
|
* `kernel` :
|
||||||
* `install_tools.yml` :
|
* `apt` :
|
||||||
* `root.yml` :
|
* `fstab` :
|
||||||
* `logs.yml` :
|
* `packages` :
|
||||||
|
* `system` :
|
||||||
|
* `root` :
|
||||||
|
* `ssh` :
|
||||||
|
* `postfix` :
|
||||||
|
* `logs` :
|
||||||
|
* `default_www` :
|
||||||
|
* `hardware` :
|
||||||
|
* `provider_online` :
|
||||||
|
* `provider_orange_fce` :
|
||||||
|
|
||||||
|
Each task file is included in the `main.yml` file with a condition based on a variable like `evolinux_tasks_hostname` (mostly `True` by default). The variables can be set to `False` to disable groups of tasks. Finer grained tasks disabling is done in each group of tasks.
|
||||||
|
|
||||||
## Available variables
|
## Available variables
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# email variables
|
||||||
|
|
||||||
general_alert_email: "root@localhost"
|
general_alert_email: "root@localhost"
|
||||||
reboot_alert_email: Null
|
reboot_alert_email: Null
|
||||||
apt_alert_email: Null
|
apt_alert_email: Null
|
||||||
|
@ -8,48 +11,83 @@ postfix_alias_email: Null
|
||||||
|
|
||||||
# hostname
|
# hostname
|
||||||
|
|
||||||
|
evolinux_tasks_hostname: True
|
||||||
|
|
||||||
evolinux_hostname: "{{ ansible_hostname }}"
|
evolinux_hostname: "{{ ansible_hostname }}"
|
||||||
evolinux_domain: "{{ ansible_domain }}"
|
evolinux_domain: "{{ ansible_domain }}"
|
||||||
evolinux_fqdn: "{{ ansible_fqdn }}"
|
evolinux_fqdn: "{{ ansible_fqdn }}"
|
||||||
evolinux_internal_hostname: "{{ evolinux_hostname }}"
|
evolinux_internal_hostname: "{{ evolinux_hostname }}"
|
||||||
|
|
||||||
# apt
|
|
||||||
|
|
||||||
evolinux_apt_upgrade: True
|
|
||||||
evolinux_apt_repositories_components: "main"
|
|
||||||
evolinux_apt_hooks: True
|
|
||||||
evolinux_apt_remove_aptitude: True
|
|
||||||
|
|
||||||
# postfix
|
|
||||||
|
|
||||||
evolinux_postfix_purge_exim: True
|
|
||||||
|
|
||||||
# kernel
|
# kernel
|
||||||
|
|
||||||
|
evolinux_tasks_kernel: True
|
||||||
|
|
||||||
evolinux_kernel_reboot_after_panic: True
|
evolinux_kernel_reboot_after_panic: True
|
||||||
evolinux_kernel_disable_tcp_timestamps: True
|
evolinux_kernel_disable_tcp_timestamps: True
|
||||||
evolinux_kernel_reduce_swapiness: True
|
evolinux_kernel_reduce_swapiness: True
|
||||||
evolinux_kernel_cve20165696: True
|
evolinux_kernel_cve20165696: True
|
||||||
|
|
||||||
# providers
|
# apt
|
||||||
|
|
||||||
evolinux_provider_online: False
|
evolinux_tasks_apt: True
|
||||||
evolinux_provider_orange_fce: False
|
|
||||||
|
evolinux_apt_upgrade: True
|
||||||
|
evolinux_apt_repositories_components: "main"
|
||||||
|
evolinux_apt_hooks: True
|
||||||
|
evolinux_apt_remove_aptitude: True
|
||||||
|
|
||||||
|
# fstab
|
||||||
|
|
||||||
|
evolinux_tasks_fstab: True
|
||||||
|
|
||||||
|
# packages
|
||||||
|
|
||||||
|
evolinux_tasks_packages: True
|
||||||
|
|
||||||
|
evolinux_delete_nfs: True
|
||||||
|
|
||||||
|
# system
|
||||||
|
|
||||||
|
evolinux_tasks_system: True
|
||||||
|
|
||||||
|
evolinux_ntp_server: Null
|
||||||
|
evolinux_timezone: "Europe/Paris"
|
||||||
|
|
||||||
|
# root
|
||||||
|
|
||||||
|
evolinux_tasks_root: True
|
||||||
|
|
||||||
|
# ssh
|
||||||
|
|
||||||
|
evolinux_tasks_ssh: True
|
||||||
|
|
||||||
|
evolinux_ssh_password_auth_addresses: []
|
||||||
|
evolinux_ssh_disable_root: True
|
||||||
|
|
||||||
|
# postfix
|
||||||
|
|
||||||
|
evolinux_tasks_postfix: True
|
||||||
|
|
||||||
|
evolinux_postfix_purge_exim: True
|
||||||
|
|
||||||
|
# logs
|
||||||
|
|
||||||
|
evolinux_tasks_logs: True
|
||||||
|
|
||||||
# default www
|
# default www
|
||||||
|
|
||||||
|
evolinux_tasks_default_www: True
|
||||||
|
|
||||||
evolinux_default_www_redirect_url: "http://evolix.fr"
|
evolinux_default_www_redirect_url: "http://evolix.fr"
|
||||||
evolinux_default_www_ssl_subject: "/CN={{ ansible_fqdn }}"
|
evolinux_default_www_ssl_subject: "/CN={{ ansible_fqdn }}"
|
||||||
evolinux_default_www_nginx_enabled: False
|
evolinux_default_www_nginx_enabled: False
|
||||||
evolinux_default_www_apache_enabled: False
|
evolinux_default_www_apache_enabled: False
|
||||||
|
|
||||||
# ssh
|
# hardware
|
||||||
|
|
||||||
evolinux_ssh_password_auth_addresses: []
|
evolinux_tasks_hardware: True
|
||||||
evolinux_ssh_disable_root: True
|
|
||||||
|
|
||||||
# misc.
|
# providers
|
||||||
|
|
||||||
evolinux_ntp_server: Null
|
evolinux_tasks_provider_online: False
|
||||||
evolinux_delete_nfs: True
|
evolinux_tasks_provider_orange_fce: False
|
||||||
evolinux_timezone: "Europe/Paris"
|
|
||||||
|
|
|
@ -1,73 +1,56 @@
|
||||||
---
|
---
|
||||||
- name: Hostname
|
- name: Hostname
|
||||||
include: hostname.yml
|
include: hostname.yml
|
||||||
tags:
|
when: evolinux_tasks_hostname
|
||||||
- evolinux_hostname
|
|
||||||
|
|
||||||
- name: Kernel tuning
|
- name: Kernel tuning
|
||||||
include: kernel.yml
|
include: kernel.yml
|
||||||
tags:
|
when: evolinux_tasks_kernel
|
||||||
- evolinux_kernel
|
|
||||||
|
|
||||||
- name: Apt configuration and packages install
|
- name: Apt configuration and packages install
|
||||||
include: apt.yml
|
include: apt.yml
|
||||||
tags:
|
when: evolinux_tasks_apt
|
||||||
- evolinux_apt
|
|
||||||
|
|
||||||
- name: Fstab configuration
|
- name: Fstab configuration
|
||||||
include: fstab.yml
|
include: fstab.yml
|
||||||
tags:
|
when: evolinux_tasks_fstab
|
||||||
- evolinux_fstab
|
|
||||||
|
|
||||||
- name: Packages
|
- name: Packages
|
||||||
include: packages.yml
|
include: packages.yml
|
||||||
tags:
|
when: evolinux_tasks_packages
|
||||||
- evolinux_packages
|
|
||||||
|
|
||||||
- name: System settings
|
- name: System settings
|
||||||
include: system.yml
|
include: system.yml
|
||||||
tags:
|
when: evolinux_tasks_system
|
||||||
- evolinux_system
|
|
||||||
|
|
||||||
- name: Root user configuration
|
- name: Root user configuration
|
||||||
include: root.yml
|
include: root.yml
|
||||||
tags:
|
when: evolinux_tasks_root
|
||||||
- evolinux_root
|
|
||||||
|
|
||||||
- name: SSH configuration
|
- name: SSH configuration
|
||||||
include: ssh.yml
|
include: ssh.yml
|
||||||
tags:
|
when: evolinux_tasks_ssh
|
||||||
- evolinux_ssh
|
|
||||||
|
|
||||||
- name: Postfix
|
- name: Postfix
|
||||||
include: postfix.yml
|
include: postfix.yml
|
||||||
tags:
|
when: evolinux_tasks_postfix
|
||||||
- evolinux_postfix
|
|
||||||
|
|
||||||
- name: Logs management
|
- name: Logs management
|
||||||
include: logs.yml
|
include: logs.yml
|
||||||
tags:
|
when: evolinux_tasks_logs
|
||||||
- evolinux_logs
|
|
||||||
|
|
||||||
|
|
||||||
- name: Default index page
|
- name: Default index page
|
||||||
include: default_www.yml
|
include: default_www.yml
|
||||||
tags:
|
when: evolinux_tasks_default_www
|
||||||
- evolinux_default_www
|
|
||||||
|
|
||||||
- name: Hardware drivers and tools
|
- name: Hardware drivers and tools
|
||||||
include: hardware.yml
|
include: hardware.yml
|
||||||
tags:
|
when: evolinux_tasks_hardware
|
||||||
- evolinux_hardware
|
|
||||||
|
|
||||||
- name: Customize for Online.net
|
- name: Customize for Online.net
|
||||||
include: provider_online.yml
|
include: provider_online.yml
|
||||||
tags:
|
when: evolinux_tasks_provider_online
|
||||||
- evolinux_provider_online
|
|
||||||
when: evolinux_provider_online
|
|
||||||
|
|
||||||
- name: Customize for Orange FCE
|
- name: Customize for Orange FCE
|
||||||
include: provider_orange_fce.yml
|
include: provider_orange_fce.yml
|
||||||
tags:
|
when: evolinux_tasks_provider_orange_fce
|
||||||
- evolinux_provider_orange_fce
|
|
||||||
when: evolinux_provider_orange_fce
|
|
||||||
|
|
Loading…
Reference in a new issue