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