mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-16 22:50:00 +01:00
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
- hosts: odroid_master
|
||||
name: Setup info display
|
||||
become: true
|
||||
gather_facts: no
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Install deps...
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- python3-pip
|
||||
- python3-dev
|
||||
- python3-venv
|
||||
- i2c-tools
|
||||
update_cache: yes
|
||||
|
||||
- name: Remove file (delete file)
|
||||
ansible.builtin.file:
|
||||
path: /usr/lib/python3.11/EXTERNALLY-MANAGED
|
||||
state: absent
|
||||
- name: Create virtual environment
|
||||
ansible.builtin.command:
|
||||
cmd: python3 -m venv /opt/myenv
|
||||
creates: /opt/myenv/bin/activate
|
||||
|
||||
- name: Install bottle python package
|
||||
ansible.builtin.pip:
|
||||
@@ -20,6 +28,8 @@
|
||||
- psutil
|
||||
- smbus2
|
||||
- uptime
|
||||
virtualenv: /opt/myenv
|
||||
|
||||
- name: Upload led control scripts
|
||||
ansible.builtin.copy:
|
||||
src: scripts/lcd_control.py
|
||||
|
||||
Reference in New Issue
Block a user