diff --git a/playbooks/install_mqtt_srv.yml b/playbooks/install_mqtt_srv.yml index 6e5bdd2..2df0a40 100644 --- a/playbooks/install_mqtt_srv.yml +++ b/playbooks/install_mqtt_srv.yml @@ -6,7 +6,7 @@ ansible.builtin.apt: name: - python3-pip - when: inventory_hostname not in groups['nas','router'] + when: inventory_hostname not in groups['nas'] and inventory_hostname not in groups['router'] become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}"