diff --git a/roles/server/tasks/add_peer.yml b/roles/server/tasks/add_peer.yml index 9fb9d35..3b57648 100644 --- a/roles/server/tasks/add_peer.yml +++ b/roles/server/tasks/add_peer.yml @@ -24,3 +24,17 @@ file: state: absent path: "/root/{{ peer_name }}.toml" + +- name: Inform about invitation file + debug: + msg: " + {% if manual is defined and manual %} + ATTENTION! Now you have to install the peer invitation file for + {{ peer_name }} manually. You will find it here: + {% else %} + The peer invitation file has been downloaded to your computer. It will + be installed automatically on the machine, so if everything succeeded, + you can safely delete it here. + {% endif %} + {{ playbook_dir }}/roles/client/files/{{ peer_name }}.toml + " diff --git a/roles/server/tasks/main.yml b/roles/server/tasks/main.yml index c1fb221..be6440e 100644 --- a/roles/server/tasks/main.yml +++ b/roles/server/tasks/main.yml @@ -93,6 +93,7 @@ peer_name: "{{ item.key }}" peer_cidr: "{{ item.value.cidr }}" peer_admin: "{{ item.value.admin | default('false') }}" + manual: true loop: "{{ manual_peers | dict2items }}" when: - item.key not in existing_peers.stdout_lines