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
feb5f467
Commit
feb5f467
authored
Oct 02, 2023
by
Arnaud Véron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move pre_tasks to vars_prompt
* Allow automated promptless playbook deployment using --extra-vars
parent
80690b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
playbook/slapos.yml
playbook/slapos.yml
+14
-21
No files found.
playbook/slapos.yml
View file @
feb5f467
...
@@ -18,27 +18,20 @@
...
@@ -18,27 +18,20 @@
private
:
no
private
:
no
default
:
"
noname"
default
:
"
noname"
pre_tasks
:
-
name
:
"
slapostoken"
-
pause
:
prompt
:
"
Input
your
slapos
token
(ignore
if
you
already
have
a
configured
slapos)
[notoken]:"
prompt
:
"
Input
your
slapos
token
(ignore
if
you
already
have
a
configured
slapos)
[notoken]"
private
:
yes
when
:
computer_name != "noname"
default
:
"
notoken"
register
:
prompt
-
set_fact
:
-
name
:
"
interface_name"
slapostoken
:
"
{{
prompt.user_input
|
default('notoken',
true)
}}"
prompt
:
"
Which
interface
will
provide
IPv6?
(ignore
if
you
already
have
a
configured
re6st)
[lo]:"
private
:
no
-
pause
:
default
:
"
lo"
prompt
:
"
Which
interface
will
provide
IPv6?
(ignore
if
you
already
have
a
configured
re6st)
[lo]"
when
:
slapostoken != "notoken"
-
name
:
"
partition_number"
register
:
prompt
prompt
:
"
How
many
SlapOS
computer
partitions
would
you
like?
[10]:"
-
set_fact
:
private
:
no
interface_name
:
"
{{
prompt.user_input
|
default('lo',
true)
}}"
default
:
"
10"
-
pause
:
prompt
:
"
How
many
SlapOS
computer
partitions
would
you
like?
[10]"
when
:
slapostoken != "notoken"
register
:
prompt
-
set_fact
:
partition_number
:
"
{{
prompt.user_input
|
default('10',
true)
}}"
roles
:
roles
:
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
...
...
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