diff --git a/playbooks/install_mqtt_srv.yml b/playbooks/install_mqtt_srv.yml index c519a56..59116df 100644 --- a/playbooks/install_mqtt_srv.yml +++ b/playbooks/install_mqtt_srv.yml @@ -32,7 +32,7 @@ owner: root when: inventory_hostname != 'nas.home.lan' become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}" - + - name: Upload service script config ansible.builtin.copy: src: scripts/mqtt_srv.cfg @@ -66,7 +66,7 @@ dest: /etc/init.d/ mode: '755' owner: admin - when: inventory_hostname != 'nas.home.lan' + when: inventory_hostname == 'nas.home.lan' become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}" - name: Upload service script2 @@ -75,7 +75,7 @@ dest: /usr/bin/ mode: '755' owner: admin - when: inventory_hostname != 'nas.home.lan' + when: inventory_hostname == 'router.home.lan' become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}" - name: Install bottle python package