From 2b88f1b008fdfa3e1fdeed847a70f46d7eab4140 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 9 Jul 2024 00:58:19 +0200 Subject: [PATCH] upt playbook --- playbooks/install_mqtt_srv.yml | 2 ++ 1 file changed, 2 insertions(+) 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' }}"