From 2d38001c6ee32c7c8ddae3bf38ecf999b0080bb8 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 28 Dec 2022 21:17:25 +0100 Subject: [PATCH] Fix daemon_reload --- playbooks/roles/services/include/meta/argument_specs.yml | 2 +- playbooks/roles/services/include/tasks/daemon_reload.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/services/include/meta/argument_specs.yml b/playbooks/roles/services/include/meta/argument_specs.yml index 382277a..b00da3a 100644 --- a/playbooks/roles/services/include/meta/argument_specs.yml +++ b/playbooks/roles/services/include/meta/argument_specs.yml @@ -4,5 +4,5 @@ argument_specs: options: services_host_services: type: "list" - elem: "str" + elem: "dict" required: true diff --git a/playbooks/roles/services/include/tasks/daemon_reload.yml b/playbooks/roles/services/include/tasks/daemon_reload.yml index 122995c..c5a581b 100644 --- a/playbooks/roles/services/include/tasks/daemon_reload.yml +++ b/playbooks/roles/services/include/tasks/daemon_reload.yml @@ -1,6 +1,6 @@ --- - name: "daemon_reload : loop over services" ansible.builtin.include_tasks: "daemon_reload/main.yml" - loop: "{{ services_host_services }}" + loop: "{{ services_host_services | dict2items | selectattr('key') }}" loop_control: loop_var: "services_service_name"