install wireguard using choco

This commit is contained in:
L3D 2024-02-23 20:47:50 +01:00
parent ce0af910d1
commit e69912b5cf
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 17 additions and 0 deletions

3
defaults/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
win_wireguard__packages:
- 'wireguard'

4
tasks/main.yml Normal file
View file

@ -0,0 +1,4 @@
---
- name: Install some parsec specific packages
ansible.builtin.include_tasks:
file: packages.yml

10
tasks/packages.yml Normal file
View file

@ -0,0 +1,10 @@
---
- name: Install wireguard packages
chocolatey.chocolatey.win_chocolatey:
name: "{{ item }}"
state: present
register: _wireguard
until: _wireguard is succeeded
retries: 5
delay: 2
with_items: "{{ win_wireguard__packages }}"