]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/wireguard/tasks/main.yml
Feat(wireguard): Install WireGuard
[ansible.git] / playbooks / roles / wireguard / tasks / main.yml
diff --git a/playbooks/roles/wireguard/tasks/main.yml b/playbooks/roles/wireguard/tasks/main.yml
new file mode 100644 (file)
index 0000000..52f4f45
--- /dev/null
@@ -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'