diff --git a/playbooks/install_mqtt_srv.yml b/playbooks/install_mqtt_srv.yml index 36f69c6..25d754a 100644 --- a/playbooks/install_mqtt_srv.yml +++ b/playbooks/install_mqtt_srv.yml @@ -63,7 +63,7 @@ become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" - name: Install bottle python package - ansible.builtin.shell: '/share/ZFS530_DATA/.qpkg/QPython312/bin/python3 /share/Data/__GITLAB/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 &' + ansible.builtin.shell: /etc/init.d/mqtt start when: inventory_hostname in groups['nas'] become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}"