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

wip: ors-image-backports

parent d55e5349
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
vars_files:
- settings/bbu.yml
roles:
- ors-image-backports
......@@ -13,5 +13,5 @@
- settings/bbu.yml
roles:
- bbu
- ors-image-backports
- bbu
---
# 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
cron: name="Repeat ors-image-backports until success" minute="*/4" hour="*" job="flock -n /opt/upgrader/ansible.lock -c \"PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ansible-playbook ors-image-backports.yml -i hosts 2>>/opt/upgrader/ors_image_backports.log >> /opt/upgrader/ors_image_backports.log\""
- name: Remove obsolete cron
cron: name="Launch Upgrader with ansible" state=absent
......@@ -90,3 +95,7 @@
- name: Enable and start systemd-resolved.service
systemd: name=systemd-resolved.service enabled=yes state=started
- name: Remove cron after successful run
cron: name="Repeat ors-image-backports until success" state=absent
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