summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2018-02-13 10:38:38 -0500
committerKenny Woodson <kwoodson@redhat.com>2018-02-13 11:38:24 -0500
commitcf298e1e9af2e8a3542607f6905d8faa59718c91 (patch)
treed9e78daf14c4de1fd2c6f8945c2e176d6f56d7a3 /roles/openshift_node/tasks
parenta53d6181a69df2bea769de59e9e54d9c18d8be94 (diff)
downloadopenshift-cf298e1e9af2e8a3542607f6905d8faa59718c91.tar.gz
openshift-cf298e1e9af2e8a3542607f6905d8faa59718c91.tar.bz2
openshift-cf298e1e9af2e8a3542607f6905d8faa59718c91.tar.xz
openshift-cf298e1e9af2e8a3542607f6905d8faa59718c91.zip
Move installation of packages before container_runtime to ensure bind mounts are avaialable.
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/bootstrap.yml10
-rw-r--r--roles/openshift_node/tasks/install_rpms.yml9
2 files changed, 12 insertions, 7 deletions
diff --git a/roles/openshift_node/tasks/bootstrap.yml b/roles/openshift_node/tasks/bootstrap.yml
index f9f042eeb..4abd060c4 100644
--- a/roles/openshift_node/tasks/bootstrap.yml
+++ b/roles/openshift_node/tasks/bootstrap.yml
@@ -1,11 +1,7 @@
---
-- name: install needed rpm(s)
- package:
- name: "{{ item }}"
- state: present
- with_items: "{{ r_openshift_node_image_prep_packages }}"
- register: result
- until: result is succeeded
+- name: include package installs
+ import_tasks: install_rpms.yml
+ when: not (openshift_is_atomic | default(False) | bool)
- name: create the directory for node
file:
diff --git a/roles/openshift_node/tasks/install_rpms.yml b/roles/openshift_node/tasks/install_rpms.yml
new file mode 100644
index 000000000..c96e9cdaf
--- /dev/null
+++ b/roles/openshift_node/tasks/install_rpms.yml
@@ -0,0 +1,9 @@
+---
+- name: install needed rpm(s)
+ package:
+ name: "{{ item }}"
+ state: present
+ with_items: "{{ r_openshift_node_image_prep_packages }}"
+ register: result
+ until: result is succeeded
+ when: not (openshift_is_atomic | default(False) | bool)