mirror of
https://git.fsfe.org/fsfe-system-hackers/innernet-playbook.git
synced 2024-11-21 22:23:10 +01:00
remove old peer invitation file before creating a new one
This commit is contained in:
parent
b80a889cc6
commit
5840d63293
@ -2,6 +2,11 @@
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
---
|
||||
- name: Make sure peer invitation does not exist before creating a new one
|
||||
file:
|
||||
path: "/root/{{ peer_name }}.toml"
|
||||
state: absent
|
||||
|
||||
- name: Add innernet peer on server
|
||||
shell: |
|
||||
innernet-server add-peer "{{ network_name }}" \
|
||||
@ -23,8 +28,8 @@
|
||||
|
||||
- name: Delete peer invitation file on server
|
||||
file:
|
||||
state: absent
|
||||
path: "/root/{{ peer_name }}.toml"
|
||||
state: absent
|
||||
|
||||
- name: Inform about invitation file
|
||||
debug:
|
||||
|
Loading…
Reference in New Issue
Block a user