Specify Raspbian playbook for Buster and below (#119)
* Call Raspbian role only when Release is older than 11 (Bullseye) * Rename raspbian-role to mark that it is intended for Buster and lower Wireguard is directly supported by Raspbian 11 (Bullseye) and higher. * Add a note regarding the scope of the Raspbian playbook
This commit is contained in:
parent
6b5fbe8b32
commit
434fe955ca
2 changed files with 11 additions and 2 deletions
|
@ -2,6 +2,12 @@
|
|||
# Copyright (C) 2020 Stefan Haun
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
# Note: This setup is called for Raspbian 10 (Buster) and lower.
|
||||
# Since Raspbian 11 (Bullseye) wireguard is supported out
|
||||
# of the box.
|
||||
# Any Raspbian-related changes for Bullseye and above need to
|
||||
# go to a separate playbook.
|
||||
|
||||
- name: (Raspbian) Install GPG - required to add WireGuard key
|
||||
ansible.builtin.apt:
|
||||
name: gnupg
|
|
@ -5,11 +5,14 @@
|
|||
|
||||
- name: Setup for Raspbian
|
||||
ansible.builtin.include_tasks:
|
||||
file: "setup-debian-raspbian.yml"
|
||||
file: "setup-debian-raspbian-buster.yml"
|
||||
apply:
|
||||
tags:
|
||||
- wg-install
|
||||
when: ansible_lsb.id is defined and ansible_lsb.id == "Raspbian"
|
||||
when:
|
||||
- ansible_lsb.id is defined
|
||||
- ansible_lsb.id == "Raspbian"
|
||||
- ansible_lsb.major_release is version('11', '<')
|
||||
register: wireguard__register_raspbian_setup
|
||||
|
||||
- name: Setup for Proxmox VE variants
|
||||
|
|
Loading…
Reference in a new issue