PI: add PPS
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
c8d123026d
commit
edf8bd6280
2 changed files with 19 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
- hosts: pi
|
- hosts: pi
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
|
## LCD STUFF
|
||||||
- name: Enable i2c on boot/config.txt
|
- name: Enable i2c on boot/config.txt
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /boot/config.txt
|
dest: /boot/config.txt
|
||||||
|
@ -41,11 +42,23 @@
|
||||||
state: started
|
state: started
|
||||||
tags: display
|
tags: display
|
||||||
|
|
||||||
|
## Now the most important part: PPS
|
||||||
|
- name: Add PPS tools
|
||||||
|
package:
|
||||||
|
name: pps-tools
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: PPS on GPIO
|
||||||
|
lineinfile:
|
||||||
|
dest: /boot/config.txt
|
||||||
|
regexp: "^dtoverlay=pps-gpio"
|
||||||
|
line: "dtoverlay=pps-gpio,gpiopin=18"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: no
|
|
||||||
tasks:
|
tasks:
|
||||||
# - name: Install chrony
|
# - name: Install chrony
|
||||||
# package:
|
# package:
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
pool pool.ntp.infomaniak.ch iburst
|
pool pool.ntp.infomaniak.ch iburst
|
||||||
pool 2.arch.pool.ntp.org iburst
|
pool 2.arch.pool.ntp.org iburst
|
||||||
|
|
||||||
|
{% if ansible_hostname == "chronos" %}
|
||||||
|
refclock PPS /dev/pps0 refid PPS
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
### AVOIDING POTENTIALLY BOGUS CHANGES TO YOUR CLOCK
|
### AVOIDING POTENTIALLY BOGUS CHANGES TO YOUR CLOCK
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue