From eb7b14fe86faa9ebabc134a878f91006fc6b44e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Tue, 8 Jan 2019 18:50:04 +0100 Subject: [PATCH] Syntax change updates --- tasks/jail/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/jail/main.yml b/tasks/jail/main.yml index 4464cd9..5e5ad32 100644 --- a/tasks/jail/main.yml +++ b/tasks/jail/main.yml @@ -77,8 +77,10 @@ when: not jail_THIS_is_new_created - name: Tidying up remaining unused jails - include_tasks: '{{ ansible_roles_path }}/karolyi.ansible-freebsd-jailhost-tools/tasks/jail/teardown.yml jail_id={{ item }}' + include_tasks: '{{ ansible_roles_path }}/karolyi.ansible-freebsd-jailhost-tools/tasks/jail/teardown.yml' with_items: '{{ vars["jail_" + jail_name + "_existing_dirs"] }}' + loop_control: + loop_var: jail_id - block: