summaryrefslogtreecommitdiffstats
path: root/roles/openshift-prep
diff options
context:
space:
mode:
authorTomas Sedovic <tomas@sedovic.cz>2017-06-30 14:40:22 +0200
committerGitHub <noreply@github.com>2017-06-30 14:40:22 +0200
commit954f711d11f17a55f4d2bdc85d518e8f8605179d (patch)
tree4b0f6c00c1a19fceded78fd3c0927f435a950e7a /roles/openshift-prep
parentd068121e2e68ddce8f086c281a9f21542df47250 (diff)
parentb28d6d787fbdc6f242aff77830a85693c148faa7 (diff)
downloadopenshift-954f711d11f17a55f4d2bdc85d518e8f8605179d.tar.gz
openshift-954f711d11f17a55f4d2bdc85d518e8f8605179d.tar.bz2
openshift-954f711d11f17a55f4d2bdc85d518e8f8605179d.tar.xz
openshift-954f711d11f17a55f4d2bdc85d518e8f8605179d.zip
Merge pull request #525 from bogdando/manage_packages
Manage packages to install/update for openstack provider
Diffstat (limited to 'roles/openshift-prep')
-rw-r--r--roles/openshift-prep/defaults/main.yml11
-rw-r--r--roles/openshift-prep/tasks/prerequisites.yml13
2 files changed, 15 insertions, 9 deletions
diff --git a/roles/openshift-prep/defaults/main.yml b/roles/openshift-prep/defaults/main.yml
new file mode 100644
index 000000000..fac25dcc1
--- /dev/null
+++ b/roles/openshift-prep/defaults/main.yml
@@ -0,0 +1,11 @@
+---
+# Defines either to install required packages and update all
+manage_packages: true
+required_packages:
+ - wget
+ - git
+ - net-tools
+ - bind-utils
+ - bridge-utils
+ - bash-completion
+ - vim-enhanced
diff --git a/roles/openshift-prep/tasks/prerequisites.yml b/roles/openshift-prep/tasks/prerequisites.yml
index 60507636f..433c1c4e3 100644
--- a/roles/openshift-prep/tasks/prerequisites.yml
+++ b/roles/openshift-prep/tasks/prerequisites.yml
@@ -6,19 +6,14 @@
yum:
name: "{{ item }}"
state: latest
- with_items:
- - wget
- - git
- - net-tools
- - bind-utils
- - bridge-utils
- - bash-completion
- - vim-enhanced
+ with_items: "{{ required_packages }}"
+ when: manage_packages|bool
- name: "Update all packages (this can take a very long time)"
yum:
- name: "*"
+ name: '*'
state: latest
+ when: manage_packages|bool
- name: "Verify hostname"
shell: hostnamectl status | awk "/Static hostname/"'{ print $3 }'