diff --git a/roles/server/tasks/main.yml b/roles/server/tasks/main.yml index 2e5fd86..d999f07 100644 --- a/roles/server/tasks/main.yml +++ b/roles/server/tasks/main.yml @@ -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 }}"