From 25447594549f5abf954c331f1000d27260cf14a0 Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 12 Aug 2020 11:01:22 +0200 Subject: proof of concept, ansible or shell script ? --- roles/setup_wireguard/tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/setup_wireguard/tasks/main.yml diff --git a/roles/setup_wireguard/tasks/main.yml b/roles/setup_wireguard/tasks/main.yml new file mode 100644 index 0000000..8e76078 --- /dev/null +++ b/roles/setup_wireguard/tasks/main.yml @@ -0,0 +1,19 @@ + +# =========================================================================== # +# __ _ __ +# _________ / /__ _ __(_)_______ ____ ___ ______ __________/ / +# / ___/ __ \/ / _ \ | | /| / / / ___/ _ \/ __ `/ / / / __ `/ ___/ __ / +# / / / /_/ / / __/ | |/ |/ / / / / __/ /_/ / /_/ / /_/ / / / /_/ / +# /_/ \____/_/\___(_) |__/|__/_/_/ \___/\__, /\__,_/\__,_/_/ \__,_/ +# /____/ +# +# =========================================================================== # + +--- +- name: Check installation for wireguard + package: + name: wireguard-go wireguard-tools + state: present + when: "'-DC-' in inventory_hostname" + +- name: Generate config file for domain controller -- cgit v1.2.3