Commit 33850094 authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors: fix for ORS upgrading from older playbooks

parent 80c95229
Pipeline #30360 passed with stage
in 0 seconds
......@@ -3,6 +3,20 @@
- name: Create /opt/upgrader where some logs will be stored
file: path=/opt/upgrader state=directory mode=0755
# Needed for ORS upgrading from older playbooks
- name: Check if anacron is installed
shell: 'which anacron'
register: anacron_present
ignore_errors: yes
- name: Run ORS playbook in case anacron is not installed
shell: ansible-playbook ors.yml -i hosts 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log
ignore_errors: yes
when: lteenb_cap.rc != 0
args:
chdir: /opt/upgrader/playbook-tmp/
# SSD image backports
- stat: path=/opt/upgrader/last-backport
......
5dde596c9a6132749fd9232ee1a404f214207116c5311120db7f636b52d9df1b -
a9064532e0ffbb2cae77dfca4554b4d83b8267a36781297fc1b3d8972829adef -
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment