githubixx / ansible-role-wireguard

Ansible role for installing WireGuard VPN. Supports Ubuntu, Debian, Archlinx, Fedora and CentOS.
https://www.tauceti.blog/post/kubernetes-the-not-so-hard-way-with-ansible-wireguard/
583 stars 182 forks source link

feat: check if all hosts are accessible #193

Closed spyesx closed 7 months ago

spyesx commented 1 year ago

Check if executing tasks as root is permitted.

spyesx commented 1 year ago

I understand what you mean while using Ansible in a production environment. We also utilize Ansible for development servers and workstations, and Wireguard facilitates access to a backend network for a range of automated administrative tasks.

To ensure seamless operation, we preliminary check to verify that all anticipated hosts are reachable. That simple measure serves two purposes:

  1. It allows us to identify and address any connectivity issues early on, preventing potential delays or disruptions.
  2. It prevents inadvertent creation of configurations that include missing hosts, which could lead to surprises and complications down the road.
spyesx commented 1 year ago

Thx for ansible.builtin.include_role. I'll have a look at it too.