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