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
master
Stefan Haun 3 years ago committed by GitHub
parent 6b5fbe8b32
commit 434fe955ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,12 @@
# Copyright (C) 2020 Stefan Haun # Copyright (C) 2020 Stefan Haun
# SPDX-License-Identifier: GPL-3.0-or-later # 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 - name: (Raspbian) Install GPG - required to add WireGuard key
ansible.builtin.apt: ansible.builtin.apt:
name: gnupg name: gnupg

@ -5,11 +5,14 @@
- name: Setup for Raspbian - name: Setup for Raspbian
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: "setup-debian-raspbian.yml" file: "setup-debian-raspbian-buster.yml"
apply: apply:
tags: tags:
- wg-install - 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 register: wireguard__register_raspbian_setup
- name: Setup for Proxmox VE variants - name: Setup for Proxmox VE variants

Loading…
Cancel
Save