diff options
author | binary <me@rgoncalves.se> | 2020-09-11 13:05:17 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-09-11 13:05:17 +0200 |
commit | fb0c0b67a71e7b3564daaa30b54ec7aea44398a5 (patch) | |
tree | e1c913a9bfd1afe333e73b56a904ebffa625dbf7 | |
parent | 419eb7cc59fdc9ffe75e2e66065afa5bab9ef77d (diff) | |
download | infrastructure-fb0c0b67a71e7b3564daaa30b54ec7aea44398a5.tar.gz |
Remove wireguard for specific host.
Though, should be made system agnostic or use a package name in a variable
-rwxr-xr-x | apply_roles | 3 | ||||
-rw-r--r-- | roles/setup_wireguard/tasks/main.yml | 1 |
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 |