From 5d92b0ac41ec56b370301fd2fb6d6cccee98e020 Mon Sep 17 00:00:00 2001 From: Markus Fischbacher Date: Tue, 19 May 2020 17:15:40 +0200 Subject: [PATCH] make sure its Raspbian Buster --- roles/raspbian/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/raspbian/tasks/main.yml b/roles/raspbian/tasks/main.yml index 05909fa..9fcd127 100644 --- a/roles/raspbian/tasks/main.yml +++ b/roles/raspbian/tasks/main.yml @@ -20,7 +20,7 @@ iptables: flush: true when: - - ansible_facts.distribution_release is search("buster") + - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster") - name: Changing to iptables-legacy for Raspbian Buster alternatives: @@ -28,7 +28,7 @@ name: iptables register: ip6_legacy when: - - ansible_facts.distribution_release is search("buster") + - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster") - name: Changing to ip6tables-legacy for Raspbian Buster alternatives: @@ -36,7 +36,7 @@ name: ip6tables register: ip4_legacy when: - - ansible_facts.distribution_release is search("buster") + - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster") - name: Rebooting on Raspbian reboot: