Add support for container devices
This commit is contained in:
@@ -13,6 +13,7 @@ service_container_additional_networks: []
|
||||
service_container_user: ""
|
||||
service_container_publish_ports: []
|
||||
service_container_mounts: []
|
||||
service_container_devices: []
|
||||
service_container_secrets: []
|
||||
service_container_env: {}
|
||||
|
||||
|
||||
@@ -169,6 +169,21 @@ argument_specs:
|
||||
elements: str
|
||||
required: false
|
||||
default: []
|
||||
service_container_devices:
|
||||
description: List of devices to be added inside the service main container.
|
||||
type: list
|
||||
required: false
|
||||
default: []
|
||||
elements: dict
|
||||
options:
|
||||
source:
|
||||
description: Device path on host
|
||||
type: str
|
||||
required: true
|
||||
destination:
|
||||
description: Device path inside the container. Defaults to same as host.
|
||||
type: str
|
||||
required: false
|
||||
service_container_secrets:
|
||||
description:
|
||||
- >
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
container_entrypoint: "{{ service_container_entrypoint }}"
|
||||
container_user: "{{ service_container_user }}"
|
||||
container_mounts: "{{ _service_container_mounts }}"
|
||||
container_devices: "{{ service_container_devices }}"
|
||||
container_publish_ports: "{{ service_container_publish_ports }}"
|
||||
container_networks: "{{ _service_container_networks }}"
|
||||
container_ip: "{{ service_container_ip }}"
|
||||
|
||||
Reference in New Issue
Block a user