From 5e83705d884cd486c0543fa0dcbe6bf49ac3dcba Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 26 Mar 2022 19:22:22 +0300 Subject: [PATCH] Feat(wireguard): Install WireGuard --- playbooks/roles/wireguard/README.txt | 1 + playbooks/roles/wireguard/tasks/main.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 playbooks/roles/wireguard/README.txt create mode 100644 playbooks/roles/wireguard/tasks/main.yml diff --git a/playbooks/roles/wireguard/README.txt b/playbooks/roles/wireguard/README.txt new file mode 100644 index 0000000..41eed2b --- /dev/null +++ b/playbooks/roles/wireguard/README.txt @@ -0,0 +1 @@ +Install and setup WireGuard (currently Debian-only). diff --git a/playbooks/roles/wireguard/tasks/main.yml b/playbooks/roles/wireguard/tasks/main.yml new file mode 100644 index 0000000..52f4f45 --- /dev/null +++ b/playbooks/roles/wireguard/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install WireGuard (Debian) + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: ['wireguard', 'resolvconf'] + state: latest + update_cache: yes + when: ansible_facts.os_family == 'Debian' -- 2.39.5