You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-role-wireguard/tasks/setup-debian.yml

30 lines
734 B
YAML

---
# 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
- include_tasks:
file: "setup-debian-pve-variant.yml"
apply:
tags:
- wg-install
when: ansible_kernel.find("pve") != -1
register: wireguard__register_pve_variant_setup
- include_tasks:
file: "setup-debian-vanilla.yml"
apply:
tags:
- wg-install
when:
- wireguard__register_raspbian_setup is skipped
- wireguard__register_pve_variant_setup is skipped