remove invitation files on kaim

This commit is contained in:
linus 2021-12-02 18:47:56 +01:00
parent d43bed1862
commit fa3cf0ef32

View File

@ -70,7 +70,7 @@
ignore_errors: true ignore_errors: true
- name: Copy invitation files of admin peers to controller - 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: synchronize:
src: "/root/{{ item.name }}.toml" src: "/root/{{ item.name }}.toml"
dest: "{{ playbook_dir }}/roles/client/files/{{ item.name }}_admin.toml" dest: "{{ playbook_dir }}/roles/client/files/{{ item.name }}_admin.toml"
@ -84,6 +84,9 @@
mode: pull mode: pull
with_items: "{{ peers }}" with_items: "{{ peers }}"
- name: Make sure invitation files are absent on innernet-server
shell: "rm -rf /root/*.toml"
- name: Enable innernet-server daemon - name: Enable innernet-server daemon
systemd: systemd:
name: "innernet-server@{{ network_name }}" name: "innernet-server@{{ network_name }}"