Add conditions everywhere.
This commit is contained in:
parent
5f0794bd0a
commit
01e5c05776
11 changed files with 74 additions and 47 deletions
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
# defaults file for glenux.basesystem
|
# defaults file for glenux.basesystem
|
||||||
|
# basesystem_role: [workstation|server|laptop]
|
||||||
basesystem_role: workstation
|
basesystem_role: workstation
|
||||||
|
|
||||||
|
# basesystem_arch: [i386|amd64|powerpc]
|
||||||
basesystem_arch: null
|
basesystem_arch: null
|
||||||
basesystem_gui: false
|
|
||||||
|
|
||||||
basesystem_task_desktop: false
|
basesystem_task_desktop: false
|
||||||
basesystem_task_development: false
|
basesystem_task_development: false
|
||||||
|
@ -13,4 +15,5 @@ basesystem_task_security: false
|
||||||
basesystem_task_shell: false
|
basesystem_task_shell: false
|
||||||
basesystem_task_shopping: false
|
basesystem_task_shopping: false
|
||||||
basesystem_task_system: false
|
basesystem_task_system: false
|
||||||
|
basesystem_task_shell: false
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,5 @@
|
||||||
- x2goclient
|
- x2goclient
|
||||||
- kde-plasma-desktop
|
- kde-plasma-desktop
|
||||||
- xserver-xorg-core
|
- xserver-xorg-core
|
||||||
|
when: basesystem_task_desktop == true
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: "Installing development utils"
|
- name: "Installing system development utils"
|
||||||
apt: >
|
apt: >
|
||||||
name="{{item}}"
|
name="{{item}}"
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- autoconf
|
- manpages-dev
|
||||||
|
- autoconf
|
||||||
- automake
|
- automake
|
||||||
- build-essential
|
- build-essential
|
||||||
- cmake
|
- cmake
|
||||||
|
@ -21,12 +22,6 @@
|
||||||
- subversion
|
- subversion
|
||||||
- tmux
|
- tmux
|
||||||
- vim
|
- vim
|
||||||
- vim-gtk
|
|
||||||
- kate
|
|
||||||
- kdevelop
|
|
||||||
- umbrello
|
|
||||||
- umlet
|
|
||||||
- xutils
|
|
||||||
- curl
|
- curl
|
||||||
- mercurial
|
- mercurial
|
||||||
- make
|
- make
|
||||||
|
@ -35,7 +30,20 @@
|
||||||
- gcc-5
|
- gcc-5
|
||||||
- gcc-5-multilib
|
- gcc-5-multilib
|
||||||
- clang-3.8
|
- clang-3.8
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
|
- name: "Installing desktop development utils"
|
||||||
|
apt: >
|
||||||
|
name="{{item}}"
|
||||||
|
state=present
|
||||||
|
with_items:
|
||||||
|
- umbrello
|
||||||
|
- umlet
|
||||||
|
- kdevelop
|
||||||
|
- vim-gtk
|
||||||
|
- kate
|
||||||
|
- xutils
|
||||||
|
when: basesystem_task_development == true && basesystem_task_desktop == true
|
||||||
|
|
||||||
- name: "Installing Haskell language"
|
- name: "Installing Haskell language"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -63,6 +71,7 @@
|
||||||
- libghc-safe-dev
|
- libghc-safe-dev
|
||||||
- libghc-uri-dev
|
- libghc-uri-dev
|
||||||
- libghc-url-dev
|
- libghc-url-dev
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing Ruby language"
|
- name: "Installing Ruby language"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -70,6 +79,7 @@
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- gem2deb
|
- gem2deb
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing php5 language"
|
- name: "Installing php5 language"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -77,6 +87,7 @@
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- virtualenv
|
- virtualenv
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing Rust language"
|
- name: "Installing Rust language"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -87,6 +98,7 @@
|
||||||
- rust-doc
|
- rust-doc
|
||||||
- rust-gdb
|
- rust-gdb
|
||||||
- cargo
|
- cargo
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing Go language"
|
- name: "Installing Go language"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -94,6 +106,7 @@
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- golang
|
- golang
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing PHP language"
|
- name: "Installing PHP language"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -112,6 +125,7 @@
|
||||||
- php5-readline
|
- php5-readline
|
||||||
- php5-tidy
|
- php5-tidy
|
||||||
- php5-xsl
|
- php5-xsl
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing development libraries"
|
- name: "Installing development libraries"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -129,4 +143,5 @@
|
||||||
- xutils-dev
|
- xutils-dev
|
||||||
- libsqlite3-dev
|
- libsqlite3-dev
|
||||||
- libsqlite0-dev
|
- libsqlite0-dev
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -32,6 +17,9 @@
|
||||||
- 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
|
||||||
- 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
|
||||||
|
|
||||||
|
- apt_repository: repo='deb http://ftp.fr.debian.org/debian/ experimental main contrib non-free' state=present
|
||||||
|
- apt_repository: repo='deb-src http://ftp.fr.debian.org/debian/ experimental main contrib non-free' state=present
|
||||||
|
|
||||||
# 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
|
||||||
- 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
|
||||||
|
@ -45,19 +33,10 @@
|
||||||
|
|
||||||
- include: system.yml
|
- include: system.yml
|
||||||
- include: desktop.yml
|
- include: desktop.yml
|
||||||
when: basesystem_task_desktop == true
|
|
||||||
- include: shopping.yml
|
- include: shopping.yml
|
||||||
when: basesystem_task_shopping == true
|
|
||||||
- include: multimedia.yml
|
- include: multimedia.yml
|
||||||
when: basesystem_task_multimedia == true
|
|
||||||
- include: development.yml
|
- include: development.yml
|
||||||
when: basesystem_task_development == true
|
|
||||||
- include: network.yml
|
- include: network.yml
|
||||||
when: basesystem_task_network == true
|
|
||||||
- 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
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
---
|
---
|
||||||
- name: "Installing multimedia tools"
|
- name: "Installing desktop multimedia tools"
|
||||||
|
apt: >
|
||||||
|
name="{{item}}"
|
||||||
|
state=present
|
||||||
|
with_items:
|
||||||
|
- transcode
|
||||||
|
- ffmpeg
|
||||||
|
when: basesystem_task_multimedia == true
|
||||||
|
|
||||||
|
- name: "Installing desktop multimedia tools"
|
||||||
apt: >
|
apt: >
|
||||||
name="{{item}}"
|
name="{{item}}"
|
||||||
state=present
|
state=present
|
||||||
|
@ -7,8 +16,7 @@
|
||||||
- mpv
|
- mpv
|
||||||
- mplayer
|
- mplayer
|
||||||
- vlc
|
- vlc
|
||||||
- transcode
|
|
||||||
- ffmpeg
|
|
||||||
- flashplugin-nonfree
|
- flashplugin-nonfree
|
||||||
- pepperflashplugin-nonfree
|
- pepperflashplugin-nonfree
|
||||||
|
when: basesystem_task_multimedia == true && basesystem_task_desktop == true
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,17 @@
|
||||||
---
|
---
|
||||||
- name: "Installing network tools"
|
- name: "Installing system network tools"
|
||||||
apt: >
|
apt: >
|
||||||
name="{{item}}"
|
name="{{item}}"
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- nmap
|
- nmap
|
||||||
- wireshark
|
|
||||||
- manpages-dev
|
|
||||||
- vlan
|
- vlan
|
||||||
|
when: basesystem_task_network == true
|
||||||
|
|
||||||
|
- name: "Installing desktop tools"
|
||||||
|
apt: >
|
||||||
|
name="{{item}}"
|
||||||
|
state=present
|
||||||
|
with_items:
|
||||||
|
- wireshark
|
||||||
|
when: basesystem_task_network == true && basesystem_task_desktop == true
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
- libreoffice
|
- libreoffice
|
||||||
- lyx
|
- lyx
|
||||||
- ttf-mscorefonts-installer
|
- ttf-mscorefonts-installer
|
||||||
|
when: basesystem_task_desktop == true && basesystem_task_office == true
|
||||||
|
|
||||||
- name: "Installing office/image utils"
|
- name: "Installing office/image utils"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -18,6 +19,8 @@
|
||||||
- geeqie
|
- geeqie
|
||||||
- gwenview
|
- gwenview
|
||||||
- inkscape
|
- inkscape
|
||||||
|
- okular
|
||||||
|
when: basesystem_task_desktop == true && basesystem_task_office == true
|
||||||
|
|
||||||
- name: "Installing office/communication tools"
|
- name: "Installing office/communication tools"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -29,4 +32,5 @@
|
||||||
- chromium
|
- chromium
|
||||||
- psi-plus
|
- psi-plus
|
||||||
- mutt
|
- mutt
|
||||||
|
when: basesystem_task_desktop == true && basesystem_task_office == true
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: "Installing security tools"
|
- name: "Installing system security tools"
|
||||||
apt: >
|
apt: >
|
||||||
name="{{item}}"
|
name="{{item}}"
|
||||||
state=present
|
state=present
|
||||||
|
@ -7,15 +7,23 @@
|
||||||
- bruteforce-luks # system & security
|
- bruteforce-luks # system & security
|
||||||
- encfs # system & security
|
- encfs # system & security
|
||||||
- encfs # system & security
|
- encfs # system & security
|
||||||
- cryptkeeper # desktop & security
|
|
||||||
- cryptmount # desktop & security
|
|
||||||
- cryptsetup # system & security
|
- cryptsetup # system & security
|
||||||
- cryptsetup-bin # system & security
|
- cryptsetup-bin # system & security
|
||||||
- libpam-encfs # system & security
|
- libpam-encfs # system & security
|
||||||
- keepassx # desktop & security
|
|
||||||
- kpcli # ?? & security
|
|
||||||
- pwgen # ?? & security
|
|
||||||
- openvpn # system or desktop and security
|
- openvpn # system or desktop and security
|
||||||
- network-manager-openvpn # desktop & security
|
|
||||||
- easy-rsa # system & security
|
- easy-rsa # system & security
|
||||||
|
when: basesystem_task_security == true
|
||||||
|
|
||||||
|
- name: "Installing desktop security tools"
|
||||||
|
apt: >
|
||||||
|
name="{{item}}"
|
||||||
|
state=present
|
||||||
|
with_items:
|
||||||
|
- cryptkeeper # desktop & security
|
||||||
|
- cryptmount # desktop & security
|
||||||
|
- network-manager-openvpn # desktop & security
|
||||||
|
- keepassx # desktop & security
|
||||||
|
- kpcli # desktop ?? & security
|
||||||
|
- pwgen # desktop & security
|
||||||
|
when: basesystem_task_desktop == true && basesystem_task_security == true
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
repo=https://github.com/clvv/fasd.git
|
repo=https://github.com/clvv/fasd.git
|
||||||
dest=/usr/local/fasd
|
dest=/usr/local/fasd
|
||||||
version=master
|
version=master
|
||||||
|
when: basesystem_task_shell == true
|
||||||
|
|
||||||
- command: make install
|
- command: make install
|
||||||
args:
|
args:
|
||||||
chdir: /usr/local/fasd
|
chdir: /usr/local/fasd
|
||||||
#creates:
|
#creates:
|
||||||
|
when: basesystem_task_shell == true
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- esniper
|
- esniper
|
||||||
|
when: basesystem_task_shopping == true
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
- lshw
|
- lshw
|
||||||
- slay
|
- slay
|
||||||
- unrar
|
- unrar
|
||||||
|
- p7zip-full
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue