From 79879ae3aff5b41ee99a32b9e8fe883f09fb5d31 Mon Sep 17 00:00:00 2001 From: yuri Date: Sun, 18 Dec 2022 04:39:09 +0100 Subject: [PATCH] Rename inventory to z9 --- ansible.cfg | 2 +- inventories/z9/host_vars/audio.yml | 3 +++ inventories/{thinkcccentre => z9}/host_vars/automation.yml | 0 inventories/{thinkcccentre => z9}/host_vars/esphome.yml | 1 + inventories/{thinkcccentre => z9}/host_vars/light.yml | 0 inventories/{thinkcccentre => z9}/host_vars/zigbee2mqtt.yml | 0 inventories/{thinkcccentre => z9}/hosts.yml | 4 ++++ 7 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 inventories/z9/host_vars/audio.yml rename inventories/{thinkcccentre => z9}/host_vars/automation.yml (100%) rename inventories/{thinkcccentre => z9}/host_vars/esphome.yml (81%) rename inventories/{thinkcccentre => z9}/host_vars/light.yml (100%) rename inventories/{thinkcccentre => z9}/host_vars/zigbee2mqtt.yml (100%) rename inventories/{thinkcccentre => z9}/hosts.yml (70%) diff --git a/ansible.cfg b/ansible.cfg index e07c0eb..1383dc0 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,2 @@ [defaults] -inventory = ./inventories/thinkcccentre/hosts.yml +inventory = ./inventories/z9/hosts.yml diff --git a/inventories/z9/host_vars/audio.yml b/inventories/z9/host_vars/audio.yml new file mode 100644 index 0000000..01668bb --- /dev/null +++ b/inventories/z9/host_vars/audio.yml @@ -0,0 +1,3 @@ +hifiberry__device: hifiberry-dac +bluetooth_audio_sink__name: Audio Pi +shairport_sync__config: "{{ lookup('ansible.builtin.file', 'configs/audio/shairport-sync/shairport-sync.conf') }}" diff --git a/inventories/thinkcccentre/host_vars/automation.yml b/inventories/z9/host_vars/automation.yml similarity index 100% rename from inventories/thinkcccentre/host_vars/automation.yml rename to inventories/z9/host_vars/automation.yml diff --git a/inventories/thinkcccentre/host_vars/esphome.yml b/inventories/z9/host_vars/esphome.yml similarity index 81% rename from inventories/thinkcccentre/host_vars/esphome.yml rename to inventories/z9/host_vars/esphome.yml index 37307a1..285966a 100644 --- a/inventories/thinkcccentre/host_vars/esphome.yml +++ b/inventories/z9/host_vars/esphome.yml @@ -2,3 +2,4 @@ esphome__version: "2022.11.4" nginx__configs: - name: esphome content: "{{ lookup('ansible.builtin.file', 'configs/esphome/nginx/esphome.conf') }}" +nginx__enable_https_redirect: true diff --git a/inventories/thinkcccentre/host_vars/light.yml b/inventories/z9/host_vars/light.yml similarity index 100% rename from inventories/thinkcccentre/host_vars/light.yml rename to inventories/z9/host_vars/light.yml diff --git a/inventories/thinkcccentre/host_vars/zigbee2mqtt.yml b/inventories/z9/host_vars/zigbee2mqtt.yml similarity index 100% rename from inventories/thinkcccentre/host_vars/zigbee2mqtt.yml rename to inventories/z9/host_vars/zigbee2mqtt.yml diff --git a/inventories/thinkcccentre/hosts.yml b/inventories/z9/hosts.yml similarity index 70% rename from inventories/thinkcccentre/hosts.yml rename to inventories/z9/hosts.yml index 3d257c5..2be7deb 100644 --- a/inventories/thinkcccentre/hosts.yml +++ b/inventories/z9/hosts.yml @@ -10,3 +10,7 @@ all: ansible_host: esphome.z9 zigbee2mqtt: ansible_host: zigbee2mqtt.z9 + printserver: + ansible_host: printserver.z9 + audio: + ansible_host: audio.z9