testing on rpi

This commit is contained in:
2023-11-03 11:57:46 +01:00
parent a6c139ec08
commit 2001874ecb
4 changed files with 41 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
- name: Basic setup tasks for Raspberry Pi
hosts: raspberrypi
hosts: all
user: remy
become: true
tasks:
@@ -19,13 +20,18 @@
apt:
name:
- git
- python3-pipenv
- python3-pip
- python3-dev
- python3-setuptools
- python3-rpi.gpio
- python3-spidev
state: present
- name: Pip install pipenv
pip:
name: pipenv
state: present
- name: Enable SPI and I2C interfaces
lineinfile:
path: /boot/config.txt
@@ -38,7 +44,6 @@
- name: Reboot the Raspberry Pi
reboot:
delay: 5
connect_timeout: 20
reboot_timeout: 300