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
Boxiang Sun
slapos.package
Commits
a7b02a9b
Commit
a7b02a9b
authored
Dec 15, 2021
by
levinericzimmermann
Committed by
Levin Zimmermann
Jan 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Fix SlapOS client configuration
It won't run in an issue anymore if the file already exists.
parent
f32d831d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
playbook/wendelin-olimex-base.yml
playbook/wendelin-olimex-base.yml
+6
-0
No files found.
playbook/wendelin-olimex-base.yml
View file @
a7b02a9b
# Simply import both playbooks so that all variables can be set by the user
# Simply import both playbooks so that all variables can be set by the user
-
import_playbook
:
re6stnet.yml
-
import_playbook
:
re6stnet.yml
-
import_playbook
:
slapos.yml
-
import_playbook
:
slapos.yml
-
name
:
Check if client configuration exists already
stat
:
path=/root/.slapos/slapos-client.cfg
register
:
slapos_client_cfg
-
name
:
a play that runs entirely on the ansible host
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
hosts
:
127.0.0.1
...
@@ -10,7 +14,9 @@
...
@@ -10,7 +14,9 @@
-
name
:
"
slapos_user_token"
-
name
:
"
slapos_user_token"
prompt
:
"
Please
enter
a
token
from
your
SlapOS
account."
prompt
:
"
Please
enter
a
token
from
your
SlapOS
account."
private
:
no
private
:
no
when
:
slapos_client_cfg.stat.exists == False
tasks
:
tasks
:
-
name
:
Configure SlapOS Client
-
name
:
Configure SlapOS Client
shell
:
slapos configure client --token {{ slapos_user_token }}
shell
:
slapos configure client --token {{ slapos_user_token }}
when
:
slapos_client_cfg.stat.exists == False
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