service: lint and add missing argspec elements specs

This commit is contained in:
uumas
2024-11-08 04:28:50 +02:00
parent eaeab956c1
commit 3fbd737eb6
2 changed files with 4 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ argument_specs:
type: list
required: false
default: []
elements: str
service_container_http_port:
description:
- Port inside the container where http requests will be proxied to.
@@ -29,6 +30,7 @@ argument_specs:
type: list
required: false
default: []
elements: str
service_container_mounts:
description: List of bind mounts or volumes to be mounted inside the service container(s).
type: list
@@ -125,6 +127,7 @@ argument_specs:
type: list
required: false
default: []
elements: str
env:
description: A dict of environment variables for the container
type: dict

View File

@@ -6,7 +6,7 @@
- name: Set container named mounts
ansible.builtin.set_fact:
_service_container_mounts: >
{{ _service_container_mounts +
{{ _service_container_mounts +
[mount | combine({'source': service_name + '-' + mount.source})] }}
when: mount.type == 'volume'
loop: "{{ service_container_mounts }}"