service: lint and add missing argspec elements specs
This commit is contained in:
@@ -13,6 +13,7 @@ argument_specs:
|
|||||||
type: list
|
type: list
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: []
|
||||||
|
elements: str
|
||||||
service_container_http_port:
|
service_container_http_port:
|
||||||
description:
|
description:
|
||||||
- Port inside the container where http requests will be proxied to.
|
- Port inside the container where http requests will be proxied to.
|
||||||
@@ -29,6 +30,7 @@ argument_specs:
|
|||||||
type: list
|
type: list
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: []
|
||||||
|
elements: str
|
||||||
service_container_mounts:
|
service_container_mounts:
|
||||||
description: List of bind mounts or volumes to be mounted inside the service container(s).
|
description: List of bind mounts or volumes to be mounted inside the service container(s).
|
||||||
type: list
|
type: list
|
||||||
@@ -125,6 +127,7 @@ argument_specs:
|
|||||||
type: list
|
type: list
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: []
|
||||||
|
elements: str
|
||||||
env:
|
env:
|
||||||
description: A dict of environment variables for the container
|
description: A dict of environment variables for the container
|
||||||
type: dict
|
type: dict
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
- name: Set container named mounts
|
- name: Set container named mounts
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
_service_container_mounts: >
|
_service_container_mounts: >
|
||||||
{{ _service_container_mounts +
|
{{ _service_container_mounts +
|
||||||
[mount | combine({'source': service_name + '-' + mount.source})] }}
|
[mount | combine({'source': service_name + '-' + mount.source})] }}
|
||||||
when: mount.type == 'volume'
|
when: mount.type == 'volume'
|
||||||
loop: "{{ service_container_mounts }}"
|
loop: "{{ service_container_mounts }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user