aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-09-11 13:05:17 +0200
committerbinary <me@rgoncalves.se>2020-09-11 13:05:17 +0200
commitfb0c0b67a71e7b3564daaa30b54ec7aea44398a5 (patch)
treee1c913a9bfd1afe333e73b56a904ebffa625dbf7
parent419eb7cc59fdc9ffe75e2e66065afa5bab9ef77d (diff)
downloadinfrastructure-fb0c0b67a71e7b3564daaa30b54ec7aea44398a5.tar.gz
Remove wireguard for specific host.
Though, should be made system agnostic or use a package name in a variable
-rwxr-xr-xapply_roles3
-rw-r--r--roles/setup_wireguard/tasks/main.yml1
2 files changed, 3 insertions, 1 deletions
diff --git a/apply_roles b/apply_roles
index ad33233..8b0aa51 100755
--- a/apply_roles
+++ b/apply_roles
@@ -12,3 +12,6 @@ for role in ${1}; do
ansible_args=$(echo "${@:2}")
ansible-playbook ${ansible_args} --tags "${role}"
done
+
+
+
diff --git a/roles/setup_wireguard/tasks/main.yml b/roles/setup_wireguard/tasks/main.yml
index d626767..b77129b 100644
--- a/roles/setup_wireguard/tasks/main.yml
+++ b/roles/setup_wireguard/tasks/main.yml
@@ -14,7 +14,6 @@
package:
name: wireguard-go wireguard-tools
state: present
- when: "'-DC-' in inventory_hostname"
- name: Activate ipv4 forwarding for wg0 server
shell: sysctl net.inet.ip.forwarding=1
remember that computers suck.