forked from extern/innernet-playbook
remove invitation files on kaim
This commit is contained in:
parent
d43bed1862
commit
fa3cf0ef32
@ -70,7 +70,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Copy invitation files of admin peers to controller
|
||||
# other machines should never be admins. Only humans.
|
||||
# NOTE other machines should never be admins. Only humans.
|
||||
synchronize:
|
||||
src: "/root/{{ item.name }}.toml"
|
||||
dest: "{{ playbook_dir }}/roles/client/files/{{ item.name }}_admin.toml"
|
||||
@ -84,6 +84,9 @@
|
||||
mode: pull
|
||||
with_items: "{{ peers }}"
|
||||
|
||||
- name: Make sure invitation files are absent on innernet-server
|
||||
shell: "rm -rf /root/*.toml"
|
||||
|
||||
- name: Enable innernet-server daemon
|
||||
systemd:
|
||||
name: "innernet-server@{{ network_name }}"
|
||||
|
Loading…
Reference in New Issue
Block a user