Commit 48788f43 authored by Joanne Hugé's avatar Joanne Hugé

!fixup playbook/ors: fix for ORS upgrading from older playbooks

parent 33850094
Pipeline #30367 failed with stage
in 0 seconds
--- ---
# 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: anacron_present.rc != 0
args:
chdir: /opt/upgrader/playbook-tmp/
# Set cron to repeat ors-image-backports in case someone unplugs the ORS while this playbook is running # Set cron to repeat ors-image-backports in case someone unplugs the ORS while this playbook is running
- name: Set Cron to repeat until success - name: Set Cron to repeat until success
......
...@@ -3,20 +3,6 @@ ...@@ -3,20 +3,6 @@
- name: Create /opt/upgrader where some logs will be stored - name: Create /opt/upgrader where some logs will be stored
file: path=/opt/upgrader state=directory mode=0755 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 # SSD image backports
- stat: path=/opt/upgrader/last-backport - stat: path=/opt/upgrader/last-backport
......
a9064532e0ffbb2cae77dfca4554b4d83b8267a36781297fc1b3d8972829adef - bc63e494fbfcc644fa19d6665f3448f024e7721f6d93600e5765a7eabdb6cda8 -
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