testing on rpi
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user