service: lint and add missing argspec elements specs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user