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
Arnaud Véron
slapos.package
Commits
a2ebb12d
Commit
a2ebb12d
authored
Oct 02, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: ors-image-backports
parent
d55e5349
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
playbook/ors-image-backports.yml
playbook/ors-image-backports.yml
+9
-0
playbook/ors.yml
playbook/ors.yml
+1
-1
playbook/roles/ors-image-backports/tasks/main.yml
playbook/roles/ors-image-backports/tasks/main.yml
+9
-0
No files found.
playbook/ors-image-backports.yml
0 → 100644
View file @
a2ebb12d
-
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
playbook/ors.yml
View file @
a2ebb12d
...
...
@@ -13,5 +13,5 @@
-
settings/bbu.yml
roles
:
-
bbu
-
ors-image-backports
-
bbu
playbook/roles/ors-image-backports/tasks/main.yml
View file @
a2ebb12d
---
# 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
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