On lut 18, Jan Kowalsky wrote:
has anybody an quick answer how to exclude an former member of an
group network? One host in an network isn't up anymore. I'm wondering
if there's an option to delete the old config/key on all servers that
remain in the network.
There's currently no way to remove the host keys via the role. You can do it
prety easily via Ansible, running something like:
ansible tinc_hosts -b -m file -a 'name=/etc/tinc/mesh0/hosts/hostname
This will remove the specific hostname from a given mesh network on all hosts
in the 'tinc_hosts' Ansible inventory group. I think that you need to restart
the tinc service for it to disconnect from the removed entries properly.
ansible tinc_hosts -b -m service -a 'name=tinc state=restarted'
You might also need to modify the list of hosts to connect to in the Ansible
inventory and re-run the role to apply the new list.
Good luck! :-)