From 7ac519c756174ea9a9def257cefcf855c6f251d4 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 9 Jul 2024 00:25:29 +0200 Subject: [PATCH] upt playbook --- playbooks/install_mqtt_srv.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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