summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml
blob: 3743f0f5dc05f3c3a4e0b2d55fbe932fc479d915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
###############################################################################
# Post upgrade - Upgrade job storage
###############################################################################
- name: Upgrade job storage
  hosts: oo_first_master
  roles:
  - { role: openshift_cli }
  vars:
    # Another spot where we assume docker is running and do not want to accidentally trigger an unsafe
    # restart.
    skip_docker_role: True
  tasks:
  - name: Upgrade job storage
    command: >
      {{ openshift.common.client_binary }} adm --config={{ openshift.common.config_base }}/master/admin.kubeconfig
      migrate storage --include=jobs --confirm
    run_once: true