1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

change rpi detection to use Raspbian id

This commit is contained in:
Tim Moody 2017-06-04 10:19:34 -04:00
parent 47053a0e50
commit 1a627bddd2

View file

@ -1,4 +1,4 @@
- name: Set flag for fedora 18
- name: Set flag for fedora 18
set_fact:
is_F18: True
when: ansible_distribution_release == "based on Fedora 18" or ansible_distribution_version == "18"
@ -17,7 +17,7 @@
tags:
- download
#TODO: Use regexp filter instead of hard-code ip
#TODO: Use regexp filter instead of hard-code ip
- name: Update chrony config file
template: backup=no
dest=/etc/chrony.conf
@ -33,11 +33,11 @@
when: selinux_disabled is defined and selinux_disabled.changed
## DISCOVER PLATFORMS ######
- name: Discover if this is a rpi -- if so it has a bcm2709 processor
set_fact:
- name: Discover if this is a rpi -- assume if so it is running raspbian
set_fact:
rpi_model: "rpi"
is_rpi: "True"
when: ansible_cmdline["bcm2709.serial"] is defined
when: ansible_lsb["id"] == "Raspbian"
ignore_errors: true
- include: prep.yml
@ -48,7 +48,7 @@
- include: computed_vars.yml
- include: detected_network.yml
when: not installing
when: not installing
# Patch Fedora 21+ so usbmount works
# Set flag to True that was initialized to False in role defaults