From 97d1c4ec8f6c08cfeca1d71d08461a1cac6aef36 Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 14 Nov 2024 11:51:47 +0100 Subject: [PATCH] bitwarden --- playbooks/sync_all_test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/playbooks/sync_all_test.yaml b/playbooks/sync_all_test.yaml index ad35031..60d3962 100644 --- a/playbooks/sync_all_test.yaml +++ b/playbooks/sync_all_test.yaml @@ -3,14 +3,17 @@ hosts: containers gather_facts: false vars: - listjojocomma: "{{ selected_containers | split(',') }}" + listjojocomma: "{{ selected_containers | replace('[', '')| replace(']','')|[split(',') }}" tasks: - debug: msg: "{{ listjojocomma }}" + when: inventory_hostname in groups['morefine-server'] - debug: msg: "{{ item }}" loop: "{{ listjojocomma }}" + when: inventory_hostname in groups['morefine-server'] - debug: msg: "{{ item }}" - loop: "{{ selected_host }}" \ No newline at end of file + loop: "{{ selected_host }}" + when: inventory_hostname in groups['morefine-server'] \ No newline at end of file