Fix variable initialization detection.
This commit is contained in:
parent
e4e897261c
commit
2f9d7da35f
3 changed files with 57 additions and 41 deletions
|
@ -4,15 +4,15 @@
|
||||||
basesystem_role: workstation
|
basesystem_role: workstation
|
||||||
|
|
||||||
# basesystem_arch: [i386|amd64|powerpc]
|
# basesystem_arch: [i386|amd64|powerpc]
|
||||||
basesystem_arch: null
|
# basesystem_arch: null
|
||||||
|
#
|
||||||
basesystem_task_desktop: null
|
# basesystem_task_desktop: null
|
||||||
basesystem_task_development: null
|
# basesystem_task_development: null
|
||||||
basesystem_task_multimedia: null
|
# basesystem_task_multimedia: null
|
||||||
basesystem_task_network: null
|
# basesystem_task_network: null
|
||||||
basesystem_task_office: null
|
# basesystem_task_office: null
|
||||||
basesystem_task_security: null
|
# basesystem_task_security: null
|
||||||
basesystem_task_shell: null
|
# basesystem_task_shell: null
|
||||||
basesystem_task_shopping: null
|
# basesystem_task_shopping: null
|
||||||
basesystem_task_system: null
|
# basesystem_task_system: null
|
||||||
|
#
|
||||||
|
|
|
@ -5,33 +5,41 @@
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- manpages-dev
|
- manpages-dev
|
||||||
- autoconf
|
|
||||||
- automake
|
|
||||||
- build-essential
|
|
||||||
- cmake
|
- cmake
|
||||||
- configure-debian
|
- configure-debian
|
||||||
- devscripts
|
|
||||||
- git-core
|
- git-core
|
||||||
- git-flow
|
- git-flow
|
||||||
- mercurial
|
- mercurial
|
||||||
- hg-fast-export
|
- hg-fast-export
|
||||||
- libtool
|
|
||||||
- meld
|
- meld
|
||||||
- mercurial
|
- mercurial
|
||||||
- opam
|
|
||||||
- screen
|
- screen
|
||||||
- subversion
|
- subversion
|
||||||
- tmux
|
- tmux
|
||||||
- vim
|
- vim
|
||||||
- curl
|
- curl
|
||||||
- mercurial
|
- mercurial
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
|
- name: "Installing C/C++ development utils"
|
||||||
|
apt: >
|
||||||
|
name="{{item}}"
|
||||||
|
state=present
|
||||||
|
with_items:
|
||||||
|
- autoconf
|
||||||
|
- automake
|
||||||
|
- build-essential
|
||||||
|
- cmake
|
||||||
|
- configure-debian
|
||||||
|
- devscripts
|
||||||
|
- libtool
|
||||||
- make
|
- make
|
||||||
- binutils
|
- binutils
|
||||||
- bison
|
- bison
|
||||||
- gcc-5
|
- gcc
|
||||||
- gcc-5-multilib
|
- gcc-multilib
|
||||||
- clang-3.8
|
|
||||||
when: basesystem_task_development == true
|
when: basesystem_task_development == true
|
||||||
|
# - clang
|
||||||
|
|
||||||
- name: "Installing desktop development utils"
|
- name: "Installing desktop development utils"
|
||||||
apt: >
|
apt: >
|
||||||
|
@ -46,6 +54,14 @@
|
||||||
- xutils
|
- xutils
|
||||||
when: (basesystem_task_development == true) and (basesystem_task_desktop == true)
|
when: (basesystem_task_development == true) and (basesystem_task_desktop == true)
|
||||||
|
|
||||||
|
- name: "Installing OCaml language"
|
||||||
|
apt: >
|
||||||
|
name="{{item}}"
|
||||||
|
state=present
|
||||||
|
with_items:
|
||||||
|
- opam
|
||||||
|
when: basesystem_task_development == true
|
||||||
|
|
||||||
- name: "Installing Haskell language"
|
- name: "Installing Haskell language"
|
||||||
apt: >
|
apt: >
|
||||||
name="{{item}}"
|
name="{{item}}"
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
## FIXME: check that default values are sane, or fail
|
## FIXME: check that default values are sane, or fail
|
||||||
- fail: Please set basesystem_arch value to something ...
|
- fail: msg="Please set basesystem_arch value to something ..."
|
||||||
when: basesystem_arch == null
|
when: basesystem_arch is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_desktop to either true or false
|
- fail: msg="Please set basesystem_task_desktop to either true or false"
|
||||||
when: basesystem_task_desktop == null
|
when: basesystem_task_desktop is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_development to either true or false
|
- fail: msg="Please set basesystem_task_development to either true or false"
|
||||||
when: basesystem_task_development == null
|
when: basesystem_task_development is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_multimedia to either true or false
|
- fail: msg="Please set basesystem_task_multimedia to either true or false"
|
||||||
when: basesystem_task_multimedia == null
|
when: basesystem_task_multimedia is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_network to either true or false
|
- fail: msg="Please set basesystem_task_network to either true or false"
|
||||||
when: basesystem_task_network == null
|
when: basesystem_task_network is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_office to either true or false
|
- fail: msg="Please set basesystem_task_office to either true or false"
|
||||||
when: basesystem_task_office == null
|
when: basesystem_task_office is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_security to either true or false
|
- fail: msg="Please set basesystem_task_security to either true or false"
|
||||||
when: basesystem_task_security == null
|
when: basesystem_task_security is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_shell to either true or false
|
- fail: msg="Please set basesystem_task_shell to either true or false"
|
||||||
when: basesystem_task_shell == null
|
when: basesystem_task_shell is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_shopping to either true or false
|
- fail: msg="Please set basesystem_task_shopping to either true or false"
|
||||||
when: basesystem_task_shopping == null
|
when: basesystem_task_shopping is undefined
|
||||||
|
|
||||||
- fail: Please set basesystem_task_system to either true or false
|
- fail: msg="Please set basesystem_task_system to either true or false"
|
||||||
when: basesystem_task_system == null
|
when: basesystem_task_system is undefined
|
||||||
|
|
||||||
- template:
|
- template:
|
||||||
src=apt_conf_glenuxnet_base.j2
|
src=apt_conf_glenuxnet_base.j2
|
||||||
|
|
Loading…
Reference in a new issue