make sure its Raspbian Buster

This commit is contained in:
Markus Fischbacher
2020-05-19 17:15:40 +02:00
parent 02e9b3607d
commit 5d92b0ac41

View File

@@ -20,7 +20,7 @@
iptables: iptables:
flush: true flush: true
when: 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 - name: Changing to iptables-legacy for Raspbian Buster
alternatives: alternatives:
@@ -28,7 +28,7 @@
name: iptables name: iptables
register: ip6_legacy register: ip6_legacy
when: 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 - name: Changing to ip6tables-legacy for Raspbian Buster
alternatives: alternatives:
@@ -36,7 +36,7 @@
name: ip6tables name: ip6tables
register: ip4_legacy register: ip4_legacy
when: when:
- ansible_facts.distribution_release is search("buster") - ansible_facts.lsb.description is match("[Rr]aspbian.*[Bb]uster")
- name: Rebooting on Raspbian - name: Rebooting on Raspbian
reboot: reboot: