Commit bf390435 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Replace var_prompt by roles+pause

  This allow us reuse the messages more easily
parent ba14c59b
......@@ -11,17 +11,9 @@
private: no
default: "notoken"
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- prompt_computername
- prompt_slapostoken
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......
......@@ -2,10 +2,6 @@
hosts: 127.0.0.1
connection: local
vars:
- computer_name: noname
- slapostoken: notoken
vars_files:
- settings/gnet.yml
......
......@@ -5,18 +5,9 @@
vars_files:
- settings/imt.yml
vars_prompt:
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- prompt_computername
- prompt_slapostoken
- { role: imt-slapos, mount_directory: /virt }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......
......@@ -8,19 +8,9 @@
vars:
interface_name: eth0
vars_prompt:
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- prompt_computername
- prompt_slapostoken
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
- vifib-team-ssh-key
......@@ -5,19 +5,8 @@
vars_files:
- settings/vifib.yml
vars_prompt:
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- prompt_computername
- prompt_slapostoken
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......@@ -9,18 +9,9 @@
- settings/vifib.yml
- settings/upgrader.yml
vars_prompt:
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- prompt_computername
- prompt_slapostoken
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......
......@@ -2,10 +2,6 @@
hosts: 127.0.0.1
connection: local
vars:
- computer_name: noname
- slapostoken: notoken
vars_files:
- settings/vifib.yml
......
......@@ -9,18 +9,9 @@
- settings/vifib.yml
- settings/upgrader.yml
vars_prompt:
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- prompt_computername
- prompt_slapostoken
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, 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