feat(wg_quick): add ansible role and playbook

This commit is contained in:
2026-01-09 23:22:46 +01:00
parent 0b11837c72
commit 4e04c508db
6 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
- name: Ensure system packages are available
ansible.builtin.package:
name: "{{ wg_quick_system_packages }}"
state: "present"
when: wg_quick_state == 'present'
- name: Ensure configuration folder is present
ansible.builtin.file:
name: "{{ wg_quick_configuration_dir }}"
state: "directory"
when: wg_quick_state == 'present'
- name: Ensure connections are in the configured state
ansible.builtin.include_tasks:
file: "configure-interface.yml"
loop: "{{ wg_quick_interfaces }}"
loop_control:
loop_var: "wg_quick_iface"
label: "{{ wg_quick_iface.name }}"