mirror of
https://git.fsfe.org/fsfe-system-hackers/innernet-playbook.git
synced 2024-11-21 14:13:11 +01:00
issue info message for created TOML file, especially for manual peers
This commit is contained in:
parent
3b90b57bfc
commit
e1672f29dc
@ -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
|
||||
"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user