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 @@
private
:
no
default
:
"
noname"
pre_tasks
:
-
pause
:
prompt
:
"
Input
your
slapos
token
(ignore
if
you
already
have
a
configured
slapos)
[notoken]"
when
:
computer_name != "noname"
register
:
prompt
-
set_fact
:
slapostoken
:
"
{{
prompt.user_input
|
default('notoken',
true)
}}"
-
pause
:
prompt
:
"
Which
interface
will
provide
IPv6?
(ignore
if
you
already
have
a
configured
re6st)
[lo]"
when
:
slapostoken != "notoken"
register
:
prompt
-
set_fact
:
interface_name
:
"
{{
prompt.user_input
|
default('lo',
true)
}}"
-
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)
}}"
-
name
:
"
slapostoken"
prompt
:
"
Input
your
slapos
token
(ignore
if
you
already
have
a
configured
slapos)
[notoken]:"
private
:
yes
default
:
"
notoken"
-
name
:
"
interface_name"
prompt
:
"
Which
interface
will
provide
IPv6?
(ignore
if
you
already
have
a
configured
re6st)
[lo]:"
private
:
no
default
:
"
lo"
-
name
:
"
partition_number"
prompt
:
"
How
many
SlapOS
computer
partitions
would
you
like?
[10]:"
private
:
no
default
:
"
10"
roles
:
-
{
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