# for rpi, without rtc, we need time as soon as possible
- name:Install chrony package
package:name={{ item }}
state=present
with_items:
- chrony
tags:
- download
#TODO: Use regexp filter instead of hard-code ip
- name:Update chrony config file
template:backup=no
dest=/etc/chrony.conf
src=chrony.conf.j2
- name:Disable selinux on next boot
selinux:state=disabled
register:selinux_disabled
when:ansible_selinux is defined and ansible_version >= '2' and ansible_selinux or ansible_selinux['status'] is defined and ansible_version < '2' and ansible_selinux['status'] != 'disabled'
- name:Disable selinux for this session (if needed)
command:setenforce Permissive
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:
rpi_model:"rpi"
is_rpi:"True"
when:ansible_cmdline["bcm2709.serial"] is defined
ignore_errors:true
- include:prep.yml
# we need to inialize the ini file
- include:xsce_ini.yml
- include:computed_vars.yml
- include:detected_network.yml
when:not installing
# Patch Fedora 21+ so usbmount works
# Set flag to True that was initialized to False in role defaults
# We can't undo this
- name:Does udev need patching
set_fact:
udev_needs_patch:True
when:ansible_distribution == "Fedora" and ansible_distribution_version >= "21"
# Same patch for CentOS 7.2
- name:Does udev need patching for Centos
set_fact:
udev_needs_patch:True
when:ansible_distribution == "CentOS" and ansible_distribution_version >= "7.2.1511"
- name:Copy udevd service to /etc/systemd/system to modify