Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
f9490b0b
Commit
f9490b0b
authored
Sep 23, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: run ors-upgrade if ors-upgrade is still in cron
parent
a558b9fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+9
-0
No files found.
playbook/roles/ors/tasks/main.yml
View file @
f9490b0b
---
-
name
:
Check if ors-upgrade playbook is installed
shell
:
'
crontab
-l
|
grep
-q
ors-upgrade'
ignore_errors
:
yes
register
:
ors_upgrade_cron
-
name
:
Run ors-upgrade once so that it removes itself
shell
:
ansible-playbook ors-upgrade.yml
when
:
ors_upgrade_cron.rc ==
0
-
name
:
Install periodic cron
cron
:
name="Launch ors playbook every 3 hours" minute="15" hour="*/3" job='cd /opt/upgrader/playbook && ansible-playbook ors.yml 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment