Added task system.

This commit is contained in:
Glenn Y. Rolland 2016-02-16 21:31:42 +01:00
parent 955b22a6cf
commit 5f0794bd0a
2 changed files with 41 additions and 9 deletions

View file

@ -1,2 +1,16 @@
--- ---
# defaults file for glenux.basesystem # defaults file for glenux.basesystem
basesystem_role: workstation
basesystem_arch: null
basesystem_gui: false
basesystem_task_desktop: false
basesystem_task_development: false
basesystem_task_multimedia: false
basesystem_task_network: false
basesystem_task_office: false
basesystem_task_security: false
basesystem_task_shell: false
basesystem_task_shopping: false
basesystem_task_system: false

View file

@ -1,5 +1,20 @@
--- ---
# Force yes no matter the value
- set_fact: basesystem_task_desktop=true
when: basesystem_role == 'workstation'
- set_fact: basesystem_task_multimedia=true
when: basesystem_role == 'workstation'
- set_fact: basesystem_task_office=true
when: basesystem_role == 'workstation'
- set_fact: basesystem_task_shopping=true
when: basesystem_role == 'workstation'
- set_fact: basesystem_task_development=false
when: basesystem_role == 'server'
- set_fact: basesystem_task_security=true
when: basesystem_role == 'server'
- template: - template:
src=apt_conf_glenuxnet_base.j2 src=apt_conf_glenuxnet_base.j2
dest=/etc/apt/apt.conf.d/00glenuxnet_base dest=/etc/apt/apt.conf.d/00glenuxnet_base
@ -9,37 +24,40 @@
# Debian normal # Debian normal
- apt_repository: repo='deb http://ftp.fr.debian.org/debian/ stable main contrib non-free' state=present - apt_repository: repo='deb http://ftp.fr.debian.org/debian/ stable main contrib non-free' state=present
notify: ['Update APT cache']
- apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ stable main contrib non-free' state=present - apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ stable main contrib non-free' state=present
notify: ['Update APT cache']
- apt_repository: repo='deb http://ftp.fr.debian.org/debian/ testing main contrib non-free' state=present - apt_repository: repo='deb http://ftp.fr.debian.org/debian/ testing main contrib non-free' state=present
notify: ['Update APT cache']
- apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ testing main contrib non-free' state=present - apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ testing main contrib non-free' state=present
notify: ['Update APT cache']
- apt_repository: repo='deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free' state=present - apt_repository: repo='deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free' state=present
notify: ['Update APT cache']
- apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ unstable main contrib non-free' state=present - apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ unstable main contrib non-free' state=present
notify: ['Update APT cache']
# Debian security # Debian security
- apt_repository: repo='deb http://security.debian.org/ stable/updates main contrib non-free' state=present - apt_repository: repo='deb http://security.debian.org/ stable/updates main contrib non-free' state=present
notify: ['Update APT cache']
- apt_repository: repo='deb-src http://security.debian.org/ stable/updates main contrib non-free' state=present - apt_repository: repo='deb-src http://security.debian.org/ stable/updates main contrib non-free' state=present
notify: ['Update APT cache']
# Debian stable-update (ex-volatile) # Debian stable-update (ex-volatile)
- apt_repository: repo='deb http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free' state=present - apt_repository: repo='deb http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free' state=present
- apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free' state=present - apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free' state=present
- command: /bin/true
notify: ['Update APT cache']
- include: system.yml - include: system.yml
- include: desktop.yml - include: desktop.yml
when: basesystem_task_desktop == true
- include: shopping.yml - include: shopping.yml
- include: development.yml when: basesystem_task_shopping == true
- include: multimedia.yml - include: multimedia.yml
when: basesystem_task_multimedia == true
- include: development.yml
when: basesystem_task_development == true
- include: network.yml - include: network.yml
when: basesystem_task_network == true
- include: office.yml - include: office.yml
when: basesystem_task_office == true
- include: security.yml - include: security.yml
when: basesystem_task_security == true
- include: shell.yml - include: shell.yml
when: basesystem_task_shell == true