Commit efbd0434 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Split re6st and slapos setup to simplify the setup a bit for imt.

parent 6b8e9225
......@@ -16,5 +16,28 @@
private: no
default: "noname"
- name: "interface_name"
prompt: "What is the interface used by re6st:"
private: no
default: "noname"
post_tasks:
- name: Add default
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="default"
- name: Max Clients
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="max-clients 1"
- name: Client count
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="client-count 0"
- name: Include interface
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="client-count {{ interface_name }}"
when: interface_name != "noname"
- name: restart re6st-node service
service: name=re6st-node state=restarted enabled=yes
roles:
- re6stnet
......@@ -6,11 +6,6 @@
- settings/imt.yml
vars_prompt:
- name: "re6sttoken"
prompt: "If you have re6st token if you have (ignore if you already have a configured re6st):"
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
......@@ -21,18 +16,6 @@
private: no
default: "notoken"
post_tasks:
- name: Add default
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="default"
- name: Add default
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="max-clients 1"
- name: Add default
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="client-count 0"
roles:
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
\ No newline at end of file
- { 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