diff options
author | Tlacenka <tlacencin@gmail.com> | 2017-07-19 17:40:53 +0200 |
---|---|---|
committer | Tomas Sedovic <tomas@sedovic.cz> | 2017-07-19 17:40:53 +0200 |
commit | 244d4f2347526e6e7428e81f882793aaca75a770 (patch) | |
tree | 8d2253d1131320754ef23b098d8e23adc84f418c | |
parent | d6c06b1bb0c07e5dd107538af4d2b3e4b575a3cd (diff) | |
download | openshift-244d4f2347526e6e7428e81f882793aaca75a770.tar.gz openshift-244d4f2347526e6e7428e81f882793aaca75a770.tar.bz2 openshift-244d4f2347526e6e7428e81f882793aaca75a770.tar.xz openshift-244d4f2347526e6e7428e81f882793aaca75a770.zip |
During provisioning, make unnecessary packages optional under a switch (#561)
* openshift-prep: bash-completion and vim-enhanced packages are now optional under install_debug_packages switch
* openshift-prep: new line removal
-rw-r--r-- | roles/openshift-prep/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/openshift-prep/tasks/prerequisites.yml | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift-prep/defaults/main.yml b/roles/openshift-prep/defaults/main.yml index fac25dcc1..c8c9a00c0 100644 --- a/roles/openshift-prep/defaults/main.yml +++ b/roles/openshift-prep/defaults/main.yml @@ -1,11 +1,13 @@ --- # Defines either to install required packages and update all manage_packages: true +install_debug_packages: false required_packages: - wget - git - net-tools - bind-utils - bridge-utils +debug_packages: - bash-completion - vim-enhanced diff --git a/roles/openshift-prep/tasks/prerequisites.yml b/roles/openshift-prep/tasks/prerequisites.yml index 433c1c4e3..b7601aa48 100644 --- a/roles/openshift-prep/tasks/prerequisites.yml +++ b/roles/openshift-prep/tasks/prerequisites.yml @@ -9,6 +9,13 @@ with_items: "{{ required_packages }}" when: manage_packages|bool +- name: "Install debug packages (optional)" + yum: + name: "{{ item }}" + state: latest + with_items: "{{ debug_packages }}" + when: install_debug_packages|bool + - name: "Update all packages (this can take a very long time)" yum: name: '*' |