service: Fix error when no mounts are defined
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
- name: Initialize variables
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
_service_container_mounts: []
|
||||||
|
|
||||||
- name: Mounts for {{ service_name }}
|
- name: Mounts for {{ service_name }}
|
||||||
ansible.builtin.include_tasks: mounts.yaml
|
ansible.builtin.include_tasks: mounts.yaml
|
||||||
when: service_container_mounts | length > 0
|
when: service_container_mounts | length > 0
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Initialize variables
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
_service_container_mounts: []
|
|
||||||
|
|
||||||
- name: Set container named mounts
|
- name: Set container named mounts
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
_service_container_mounts: >
|
_service_container_mounts: >
|
||||||
|
|||||||
Reference in New Issue
Block a user