Commit feb5f467 authored by Arnaud Véron's avatar Arnaud Véron

Move pre_tasks to vars_prompt

* Allow automated promptless playbook deployment using --extra-vars
parent 80690b3c
...@@ -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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment