aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-08-12 11:01:22 +0200
committerbinary <me@rgoncalves.se>2020-08-12 11:01:22 +0200
commit25447594549f5abf954c331f1000d27260cf14a0 (patch)
tree14f730ececc377831781e9e6ffde59b8efcaced0
parentee318a00cec48da7f24bebb61b90314d47874c7f (diff)
downloadinfrastructure-25447594549f5abf954c331f1000d27260cf14a0.tar.gz
proof of concept, ansible or shell script ?
-rw-r--r--roles/setup_wireguard/tasks/main.yml19
1 files changed, 19 insertions, 0 deletions
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
remember that computers suck.