From 75408d89261c7323eae82d813afb6f805c380e0f Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 1 Dec 2022 21:35:03 +0100 Subject: [PATCH] Move variable to host_vars and use fully qualified lookup plugin name --- inventories/thinkcccentre/host_vars/light.yml | 51 ++++++++++--------- playbooks/deploy_light.yml | 2 - 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/inventories/thinkcccentre/host_vars/light.yml b/inventories/thinkcccentre/host_vars/light.yml index dfb7b17..ce98a49 100644 --- a/inventories/thinkcccentre/host_vars/light.yml +++ b/inventories/thinkcccentre/host_vars/light.yml @@ -1,52 +1,53 @@ ola__configs: - name: ola-artnet - content: "{{ lookup('file', 'configs/light/ola/ola-artnet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-artnet.conf') }}" - name: ola-dummy - content: "{{ lookup('file', 'configs/light/ola/ola-dummy.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-dummy.conf') }}" - name: ola-e131 - content: "{{ lookup('file', 'configs/light/ola/ola-e131.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-e131.conf') }}" - name: ola-espnet - content: "{{ lookup('file', 'configs/light/ola/ola-espnet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-espnet.conf') }}" - name: ola-ftdidmx - content: "{{ lookup('file', 'configs/light/ola/ola-ftdidmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-ftdidmx.conf') }}" - name: ola-gpio - content: "{{ lookup('file', 'configs/light/ola/ola-gpio.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-gpio.conf') }}" - name: ola-karate - content: "{{ lookup('file', 'configs/light/ola/ola-karate.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-karate.conf') }}" - name: ola-kinet - content: "{{ lookup('file', 'configs/light/ola/ola-kinet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-kinet.conf') }}" - name: ola-milinst - content: "{{ lookup('file', 'configs/light/ola/ola-milinst.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-milinst.conf') }}" - name: ola-opendmx - content: "{{ lookup('file', 'configs/light/ola/ola-opendmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-opendmx.conf') }}" - name: ola-openpixelcontrol - content: "{{ lookup('file', 'configs/light/ola/ola-openpixelcontrol.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-openpixelcontrol.conf') }}" - name: ola-osc - content: "{{ lookup('file', 'configs/light/ola/ola-osc.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-osc.conf') }}" - name: ola-pathport - content: "{{ lookup('file', 'configs/light/ola/ola-pathport.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-pathport.conf') }}" - name: ola-port - content: "{{ lookup('file', 'configs/light/ola/ola-port.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-port.conf') }}" - name: ola-renard - content: "{{ lookup('file', 'configs/light/ola/ola-renard.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-renard.conf') }}" - name: ola-sandnet - content: "{{ lookup('file', 'configs/light/ola/ola-sandnet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-sandnet.conf') }}" - name: ola-server - content: "{{ lookup('file', 'configs/light/ola/ola-server.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-server.conf') }}" - name: ola-shownet - content: "{{ lookup('file', 'configs/light/ola/ola-shownet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-shownet.conf') }}" - name: ola-spi - content: "{{ lookup('file', 'configs/light/ola/ola-spi.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-spi.conf') }}" - name: ola-stageprofi - content: "{{ lookup('file', 'configs/light/ola/ola-stageprofi.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-stageprofi.conf') }}" - name: ola-uartdmx - content: "{{ lookup('file', 'configs/light/ola/ola-uartdmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-uartdmx.conf') }}" - name: ola-universe - content: "{{ lookup('file', 'configs/light/ola/ola-universe.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-universe.conf') }}" - name: ola-usbdmx - content: "{{ lookup('file', 'configs/light/ola/ola-usbdmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-usbdmx.conf') }}" - name: ola-usbserial - content: "{{ lookup('file', 'configs/light/ola/ola-usbserial.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/ola/ola-usbserial.conf') }}" +foobazdmx__art_net_host: localhost nginx__configs: - name: foobazdmx - content: "{{ lookup('file', 'configs/light/nginx/foobazdmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'configs/light/nginx/foobazdmx.conf') }}" diff --git a/playbooks/deploy_light.yml b/playbooks/deploy_light.yml index b362c1b..80f827c 100644 --- a/playbooks/deploy_light.yml +++ b/playbooks/deploy_light.yml @@ -6,5 +6,3 @@ - ola - foobazdmx - nginx - vars: - foobazdmx__art_net_host: localhost