diff --git a/playbooks/roles/services/deploy/pod/tasks/main.yml b/playbooks/roles/services/deploy/pod/tasks/main.yml index 8a8367b..aefe6eb 100644 --- a/playbooks/roles/services/deploy/pod/tasks/main.yml +++ b/playbooks/roles/services/deploy/pod/tasks/main.yml @@ -28,10 +28,12 @@ {{ [( 'pod-' ~ services_service_name )] | union([( 'pod-' ~ services_service_name ~ '-')] | product(services_deploy_pod_oneshot.after | default([])) | map('join')) | + sort | product(['.service']) | map('join') }}" services_deploy_pod_oneshot_before: "\ {{ [( 'pod-' ~ services_service_name ~ '-')] | product(services_deploy_pod_oneshot.before | default([])) | map('join') | + sort | product(['.service']) | map('join') }}" loop: "{{ (services_deploy_pod.oneshot | default({})).keys() }}" register: services_deploy_pod_oneshot_files @@ -49,14 +51,17 @@ {{ [( 'pod-' ~ services_service_name )] | union([( 'pod-' ~ services_service_name ~ '-')] | product(services_deploy_pod_container.binds_to | default([])) | map('join')) | + sort | product(['.service']) | map('join') }}" services_deploy_pod_container_requires: "\ {{ [( 'pod-' ~ services_service_name ~ '-')] | product(services_deploy_pod_container.requires | default([])) | map('join') | + sort | product(['.service']) | map('join') }}" services_deploy_pod_container_wants: "\ {{ [( 'pod-' ~ services_service_name ~ '-')] | product(services_deploy_pod_container.wants | default([])) | map('join') | + sort | product(['.service']) | map('join') }}" loop: "{{ services_deploy_pod.containers.keys() }}" register: services_deploy_pod_container_files