diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-20 23:37:21 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-21 00:46:50 +0200 |
| commit | f93dd15e52140d8e2fb5462ed009a954f1885572 (patch) | |
| tree | 96bb58b08b54997669e6a9c415a53a7f4d1bd277 /roles/wireguard/meta | |
| parent | 36ec6f1a3961abbbb41495dd4d141871f6675fea (diff) | |
Add wireguard role and fix testing
The testing was failing because the use of the example files with the
same domain names, resulted in the files and the molecule variable were
being merged and therefore running tasks that would fail on test
(example, setting a fake VPN connection that wouldn't start).
Diffstat (limited to 'roles/wireguard/meta')
| -rw-r--r-- | roles/wireguard/meta/argument_specs.yml | 18 | ||||
| -rw-r--r-- | roles/wireguard/meta/main.yml | 19 |
2 files changed, 37 insertions, 0 deletions
diff --git a/roles/wireguard/meta/argument_specs.yml b/roles/wireguard/meta/argument_specs.yml new file mode 100644 index 00000000..68e0e821 --- /dev/null +++ b/roles/wireguard/meta/argument_specs.yml @@ -0,0 +1,18 @@ +--- +argument_specs: + main: + short_description: "Install and configure WireGuard VPN connections" + description: + - "Installs WireGuard package and tools" + - "Deploys WireGuard configuration files from dictionary" + - "Optionally auto-starts a specific connection on boot" + author: "a14m" + options: + wireguard_connections: + description: "Dictionary of WireGuard connection configurations" + type: "dict" + default: {} + wireguard_autostart_connection: + description: "Name of connection to automatically start on boot" + type: "str" + default: "" diff --git a/roles/wireguard/meta/main.yml b/roles/wireguard/meta/main.yml new file mode 100644 index 00000000..22da6ddd --- /dev/null +++ b/roles/wireguard/meta/main.yml @@ -0,0 +1,19 @@ +--- +dependencies: [] + +galaxy_info: + author: "a14m" + description: "Install and configure WireGuard VPN connections" + company: "kartoffeln.work GmbH." + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" |
