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"