ansible-role--basesystem/tasks/main.yml
2016-02-16 21:31:42 +01:00

64 lines
2.4 KiB
YAML

---
# 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:
src=apt_conf_glenuxnet_base.j2
dest=/etc/apt/apt.conf.d/00glenuxnet_base
owner=root
group=root
mode=0644
# Debian normal
- apt_repository: repo='deb 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
- apt_repository: repo='deb 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
- apt_repository: repo='deb 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
# Debian security
- apt_repository: repo='deb 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
# 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-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: desktop.yml
when: basesystem_task_desktop == true
- include: shopping.yml
when: basesystem_task_shopping == true
- include: multimedia.yml
when: basesystem_task_multimedia == true
- include: development.yml
when: basesystem_task_development == true
- include: network.yml
when: basesystem_task_network == true
- include: office.yml
when: basesystem_task_office == true
- include: security.yml
when: basesystem_task_security == true
- include: shell.yml
when: basesystem_task_shell == true