Files
ansible-k8s-pi-cluster/enable_display.yml

23 lines
454 B
YAML

- name: Install prerequisits
apt:
name: git
update_cache: true
- name: enable I2S Circuit
shell: raspi-config nonint do_i2c 0
- name: Get Github Repo
git:
repo: https://github.com/UCTRONICS/U6143_ssd1306.git
dest: /srv/U6143_ssd1306
- name: write to rc.local
blockinfile:
path: /etc/rc.local
insertbefore: exit 0
block: |
cd /srv/U6143_ssd1306/C
sudo make clean
sudo make
sudo ./display &