--- # Copyright (C) 2020 Stefan Haun # Copyright (C) 2021 Steve Fan # SPDX-License-Identifier: GPL-3.0-or-later - include_tasks: file: "setup-debian-raspbian.yml" apply: tags: - wg-install when: ansible_lsb.id is defined and ansible_lsb.id == "Raspbian" register: wireguard__register_raspbian_setup - name: pve variants block: - include_tasks: file: "setup-debian-pve-host-variant.yml" apply: tags: - wg-install when: - ansible_virtualization_role == "host" register: wireguard__register_pve_host_variant_setup - include_tasks: file: "setup-debian-pve-guest-variant.yml" apply: tags: - wg-install when: - ansible_virtualization_role == "guest" register: wireguard__register_pve_guest_variant_setup when: - ansible_kernel.find("pve") != -1 - include_tasks: file: "setup-debian-vanilla.yml" apply: tags: - wg-install when: - wireguard__register_raspbian_setup is skipped - wireguard__register_pve_guest_variant_setup is skipped - wireguard__register_pve_host_variant_setup is skipped