mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
change rpi detection to use Raspbian id
This commit is contained in:
parent
47053a0e50
commit
1a627bddd2
1 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
- name: Set flag for fedora 18
|
- name: Set flag for fedora 18
|
||||||
set_fact:
|
set_fact:
|
||||||
is_F18: True
|
is_F18: True
|
||||||
when: ansible_distribution_release == "based on Fedora 18" or ansible_distribution_version == "18"
|
when: ansible_distribution_release == "based on Fedora 18" or ansible_distribution_version == "18"
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
#TODO: Use regexp filter instead of hard-code ip
|
#TODO: Use regexp filter instead of hard-code ip
|
||||||
- name: Update chrony config file
|
- name: Update chrony config file
|
||||||
template: backup=no
|
template: backup=no
|
||||||
dest=/etc/chrony.conf
|
dest=/etc/chrony.conf
|
||||||
|
@ -33,11 +33,11 @@
|
||||||
when: selinux_disabled is defined and selinux_disabled.changed
|
when: selinux_disabled is defined and selinux_disabled.changed
|
||||||
|
|
||||||
## DISCOVER PLATFORMS ######
|
## DISCOVER PLATFORMS ######
|
||||||
- name: Discover if this is a rpi -- if so it has a bcm2709 processor
|
- name: Discover if this is a rpi -- assume if so it is running raspbian
|
||||||
set_fact:
|
set_fact:
|
||||||
rpi_model: "rpi"
|
rpi_model: "rpi"
|
||||||
is_rpi: "True"
|
is_rpi: "True"
|
||||||
when: ansible_cmdline["bcm2709.serial"] is defined
|
when: ansible_lsb["id"] == "Raspbian"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- include: prep.yml
|
- include: prep.yml
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
- include: computed_vars.yml
|
- include: computed_vars.yml
|
||||||
|
|
||||||
- include: detected_network.yml
|
- include: detected_network.yml
|
||||||
when: not installing
|
when: not installing
|
||||||
|
|
||||||
# Patch Fedora 21+ so usbmount works
|
# Patch Fedora 21+ so usbmount works
|
||||||
# Set flag to True that was initialized to False in role defaults
|
# Set flag to True that was initialized to False in role defaults
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue