Add some ansible stuff
Some checks failed
actions-lint / actions-lint (push) Successful in 10s
ansible-lint / ansible-lint (push) Failing after 0s

This commit is contained in:
2024-09-13 11:36:05 +01:00
parent b1c0251973
commit 2a78309823
9 changed files with 95 additions and 0 deletions

22
.github/workflows/ansible-lint.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: ansible-lint
on:
push:
branches: [main]
paths:
- 'playbooks/**'
pull_request:
branches: [main]
paths:
- 'playbooks/**'
workflow_dispatch:
permissions:
contents: read
jobs:
ansible-lint:
name: ansible-lint
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
with:
args: '-p playbooks'

View File

@@ -0,0 +1,6 @@
---
node_id: bedroom
ble_sensors:
- name: bedroom
mac: a4:c1:38:2c:a9:a3
snapclient_opts: -s sndrpihifiberry

View File

@@ -0,0 +1,2 @@
---
snapclient_opts: -s sndrpihifiberry

View File

@@ -0,0 +1,10 @@
---
node_id: basement
ble_sensors:
- name: basement
mac: a4:c1:38:6e:e2:96
- name: kitchen
mac: a4:c1:38:e1:12:b8
- name: lounge
mac: a4:c1:38:fa:df:3e
snapclient_opts: -s sndrpihifiberry

View File

@@ -0,0 +1,5 @@
---
node_id: office
ble_sensors:
- name: office
mac: a4:c1:38:92:82:a3

View File

@@ -0,0 +1,5 @@
---
node_id: utility
ble_sensors:
- name: utility
mac: a4:c1:38:88:c3:bf

4
host_vars/terra.lan.yaml Normal file
View File

@@ -0,0 +1,4 @@
---
docker-services:
- 1000-km-year
- audiobookshelf

32
inventory Normal file
View File

@@ -0,0 +1,32 @@
[otherpis]
pihole.lan
[powermon]
powermon.lan
[speakers]
office-pi.lan
hifi-speakers.lan
bedroom-speakers.lan
basement-speakers.lan
kitchen-speakers.lan
hallway-speakers.lan
dining-room-pi.lan
[bleScanners]
kitchen-speakers.lan
bedroom-speakers.lan
office-pi.lan
[pis:children]
speakers
otherpis
powermon
[pis:vars]
ansible_user=pi
ansible_ssh_pass=raspberry
ansible_python_interpreter=auto
[docker1]
terra.lan

9
playbooks/update-pis.yml Normal file
View File

@@ -0,0 +1,9 @@
- hosts: pis
become: yes
tasks:
- name: Update APT Cache
apt:
update_cache: yes
- name: Update packages
apt:
upgrade: safe