Commit 65e71367 authored by Levin Zimmermann's avatar Levin Zimmermann

playbook: Fix wrong computer name

When importing the slapos playbook after running re6stnet-install role,
the user defined computer_name will be ignored and will be overridden
by 'set_facts', line 16 in re6stnet-install/tasks/main.yml. Therefore
the slapos install role is directly called (instead of importing the
playbook) which seems to solve the issue.
parent 826f73fc
......@@ -4,7 +4,6 @@
vars:
- re6st_annon: False
- computer_name: noname
- re6st_fingerprint: nofingerprint
vars_prompt:
......@@ -18,9 +17,44 @@
private: no
default: "notoken"
- name: "slapos_master_url"
prompt: "What is the url to the SlapOS Master API? (ignore if you already have a configured re6st and slapos):"
private: no
default: "https://slap.vifib.com/"
- name: "slapos_web_master_url"
prompt: "What is the url to the SlapOS Master Website? (ignore if you already have a configured re6st and slapos):"
private: no
default: "https://panel.rapid.space/"
- name: "computer_name"
prompt: "Name your computer (ignore if you already have a configured re6st and slapos or if you don't want to register your computer to SlapOS Master):"
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) }}"
roles:
- role: re6stnet-install
- role: re6stnet-ensure-running
- import_playbook: slapos.yml
- { 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