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
Carlos Ramos Carreño
slapos.package
Commits
e96ae8e9
Commit
e96ae8e9
authored
Oct 19, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: prevent ORS playbook from entering an infinite loop
parent
1a01c455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
playbook/roles/ors-image-backports/tasks/main.yml
playbook/roles/ors-image-backports/tasks/main.yml
+9
-1
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/roles/ors-image-backports/tasks/main.yml
View file @
e96ae8e9
...
@@ -7,10 +7,18 @@
...
@@ -7,10 +7,18 @@
register
:
anacron_present
register
:
anacron_present
ignore_errors
:
yes
ignore_errors
:
yes
-
name
:
Prevent ORS playbook from recursively running
file
:
path="/opt/upgrader/ors_playbook_rerun" state="touch"
when
:
anacron_present.rc !=
0
-
name
:
Check if ors_playbook_rerun exists
stat
:
path="/opt/upgrader/ors_playbook_rerun"
register
:
ors_playbook_rerun
-
name
:
Run ORS playbook in case anacron is not installed
-
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
shell
:
ansible-playbook ors.yml -i hosts 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log
ignore_errors
:
yes
ignore_errors
:
yes
when
:
anacron_present.rc !=
0
when
:
(anacron_present.rc != 0) and (ors_playbook_rerun.stat.exists ==
false
)
args
:
args
:
chdir
:
/opt/upgrader/playbook-tmp/
chdir
:
/opt/upgrader/playbook-tmp/
...
...
playbook/sha256sum
View file @
e96ae8e9
1a521af09daa0c44f0a03347c771a79871693df4f40902fe912469bd8af004f6
-
d8d83472b5d13d54e1d2db757e7e054b26a156e49ac569927d00117f5ad8c959
-
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