add wireguard install flag

This commit is contained in:
ace 2022-07-13 22:06:29 +03:00
parent 51baaed1c1
commit fcb4ff7057
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
wireguard_install: yes
wireguard_ui_container_engine: "{{ container_engine | default('podman') }}"
wireguard_ui_container_name: "wireguard-ui"
wireguard_ui_network_mode: "host"

View File

@ -1,5 +1,7 @@
- name: "Include WireGuard install"
include_tasks: wireguard_install.yaml
when: wireguard_install
- name: "Include WireGuard UI install with podman"
include_tasks: podman.yaml
when: wireguard_ui_container_engine == 'podman'