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
Klaus Wölfel
slapos.package
Commits
ffdc83d7
Commit
ffdc83d7
authored
Sep 21, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obs/slapos: Remove empty spaces.
parent
96d87bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
playbook/roles/upgrader/tasks/main.yml
playbook/roles/upgrader/tasks/main.yml
+7
-7
No files found.
playbook/roles/upgrader/tasks/main.yml
View file @
ffdc83d7
...
@@ -13,14 +13,14 @@
...
@@ -13,14 +13,14 @@
-
file
:
path=/opt/upgrader/ state=directory mode=0755
-
file
:
path=/opt/upgrader/ state=directory mode=0755
-
shell
:
rm -rf /opt/upgrader/tmp
-
shell
:
rm -rf /opt/upgrader/tmp
-
shell
:
mkdir -p /opt/upgrader/tmp
-
shell
:
mkdir -p /opt/upgrader/tmp
-
name
:
Periodically download the latest playbook
-
name
:
Periodically download the latest playbook
shell
:
slapcache-download --destination=/opt/upgrader/archive.tar.gz
shell
:
slapcache-download --destination=/opt/upgrader/archive.tar.gz
-
name
:
Uncompress
-
name
:
Uncompress
shell
:
tar -xzvf /opt/upgrader/archive.tar.gz
shell
:
tar -xzvf /opt/upgrader/archive.tar.gz
args
:
args
:
chdir
:
/opt/upgrader/tmp
chdir
:
/opt/upgrader/tmp
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
when
:
playbook_folder.stat.exists == False
when
:
playbook_folder.stat.exists == False
-
stat
:
path=/opt/upgrader/tmp/hosts
-
stat
:
path=/opt/upgrader/tmp/hosts
register
:
hosts_file
register
:
hosts_file
-
shell
:
rm -rf /opt/upgrader/playbook-tmp
-
shell
:
rm -rf /opt/upgrader/playbook-tmp
when
:
hosts_file.stat.exists == True
when
:
hosts_file.stat.exists == True
...
@@ -45,11 +45,11 @@
...
@@ -45,11 +45,11 @@
shell
:
echo {{ archive.stat.md5 }} > /opt/upgrader/next-upgrade-signature
shell
:
echo {{ archive.stat.md5 }} > /opt/upgrader/next-upgrade-signature
-
name
:
Stat Current Upgrade Signature
-
name
:
Stat Current Upgrade Signature
file
:
path=/opt/upgrader/current-upgrade-signature state=touch mode="0666"
file
:
path=/opt/upgrader/current-upgrade-signature state=touch mode="0666"
-
name
:
Get /opt/upgrader/next-upgrade-signature content
-
name
:
Get /opt/upgrader/next-upgrade-signature content
shell
:
cat /opt/upgrader/next-upgrade-signature
shell
:
cat /opt/upgrader/next-upgrade-signature
register
:
register
:
next_upgrade_signature
next_upgrade_signature
-
name
:
Get /opt/upgrader/current-upgrade-signature content
-
name
:
Get /opt/upgrader/current-upgrade-signature content
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
chdir
:
/opt/upgrader/playbook-tmp/
chdir
:
/opt/upgrader/playbook-tmp/
-
name
:
Upgrade Current Upgrade Signature
-
name
:
Upgrade Current Upgrade Signature
shell
:
cat /opt/upgrader/next-upgrade-signature > /opt/upgrader/current-upgrade-signature
shell
:
cat /opt/upgrader/next-upgrade-signature > /opt/upgrader/current-upgrade-signature
when
:
(upgrade_after > lookup('file', '/opt/upgrader/last-upgrade')|int ) and (lookup('file', '/opt/upgrader/next-upgrade-signature') != lookup('file', '/opt/upgrader/current-upgrade-signature'))
when
:
(upgrade_after > lookup('file', '/opt/upgrader/last-upgrade')|int ) and (lookup('file', '/opt/upgrader/next-upgrade-signature') != lookup('file', '/opt/upgrader/current-upgrade-signature'))
-
shell
:
echo {{ ansible_date_time.epoch }} > /opt/upgrader/last-upgrade
-
shell
:
echo {{ ansible_date_time.epoch }} > /opt/upgrader/last-upgrade
...
...
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