summaryrefslogtreecommitdiffstats
path: root/deployment/playbooks/roles/yum-update-and-reboot/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/playbooks/roles/yum-update-and-reboot/tasks')
-rw-r--r--deployment/playbooks/roles/yum-update-and-reboot/tasks/main.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/deployment/playbooks/roles/yum-update-and-reboot/tasks/main.yaml b/deployment/playbooks/roles/yum-update-and-reboot/tasks/main.yaml
index c49bcc9d..826ff498 100644
--- a/deployment/playbooks/roles/yum-update-and-reboot/tasks/main.yaml
+++ b/deployment/playbooks/roles/yum-update-and-reboot/tasks/main.yaml
@@ -10,7 +10,8 @@
when: "(hostnames_for_reboot is not defined) or hostnames_for_reboot | length < 1"
- name: Run yum_update command
- command: "yum update -y"
+ command: "yum update -y {{ (openshift_vers in ['v3_6', 'v3_7']) |
+ ternary('--exclude=*docker*', '') }}"
delegate_to: "{{ item }}"
with_items: "{{ hostnames_for_reboot }}"