Add some ansible stuff
This commit is contained in:
22
.github/workflows/ansible-lint.yml
vendored
Normal file
22
.github/workflows/ansible-lint.yml
vendored
Normal 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'
|
||||
6
host_vars/bedroom-speaker.lan.yaml
Normal file
6
host_vars/bedroom-speaker.lan.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
node_id: bedroom
|
||||
ble_sensors:
|
||||
- name: bedroom
|
||||
mac: a4:c1:38:2c:a9:a3
|
||||
snapclient_opts: -s sndrpihifiberry
|
||||
2
host_vars/dining-room-pi.lan.yaml
Normal file
2
host_vars/dining-room-pi.lan.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
snapclient_opts: -s sndrpihifiberry
|
||||
10
host_vars/kitchen-speakers.lan.yaml
Normal file
10
host_vars/kitchen-speakers.lan.yaml
Normal 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
|
||||
5
host_vars/office-pi.lan.yaml
Normal file
5
host_vars/office-pi.lan.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
node_id: office
|
||||
ble_sensors:
|
||||
- name: office
|
||||
mac: a4:c1:38:92:82:a3
|
||||
5
host_vars/powermon.lan.yaml
Normal file
5
host_vars/powermon.lan.yaml
Normal 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
4
host_vars/terra.lan.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
docker-services:
|
||||
- 1000-km-year
|
||||
- audiobookshelf
|
||||
32
inventory
Normal file
32
inventory
Normal 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
9
playbooks/update-pis.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- hosts: pis
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Update APT Cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
- name: Update packages
|
||||
apt:
|
||||
upgrade: safe
|
||||
Reference in New Issue
Block a user