diff --git a/playbooks/install_mqtt_srv.yml b/playbooks/install_mqtt_srv.yml index 9e33fb9..9c807db 100644 --- a/playbooks/install_mqtt_srv.yml +++ b/playbooks/install_mqtt_srv.yml @@ -73,8 +73,8 @@ - ping3 - psutil - autorandr - when: inventory_hostname not in groups['nas'] - become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" + when: inventory_hostname not in groups['nas','router'] + become: "{{ 'no' if inventory_hostname in groups['nas','router'] else 'yes' }}" - name: Just force systemd to reread configs (2.4 and above) @@ -97,7 +97,7 @@ poll: 0 when: inventory_hostname in groups['nas'] become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" - + - name: Restart mqtt service ansible.builtin.shell: "(/jffs/scripts/mqtt_srv/mqtt_srv.sh restart >/dev/null 2>&1 &)" async: 10