container: Support cap_add
This commit is contained in:
@@ -14,3 +14,4 @@ container_auto_start: true
|
|||||||
container_auto_update: true
|
container_auto_update: true
|
||||||
container_requires: []
|
container_requires: []
|
||||||
container_wants: []
|
container_wants: []
|
||||||
|
container_add_capabilities: []
|
||||||
|
|||||||
@@ -173,6 +173,13 @@ argument_specs:
|
|||||||
required: false
|
required: false
|
||||||
default: {}
|
default: {}
|
||||||
|
|
||||||
|
container_add_capabilities:
|
||||||
|
description: List of capabilities to add to the container
|
||||||
|
type: list
|
||||||
|
required: false
|
||||||
|
default: []
|
||||||
|
elements: str
|
||||||
|
|
||||||
container_requires:
|
container_requires:
|
||||||
description: >
|
description: >
|
||||||
List of systemd units (like other containers) this one depends on.
|
List of systemd units (like other containers) this one depends on.
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
publish: "{{ container_publish_ports }}"
|
publish: "{{ container_publish_ports }}"
|
||||||
secrets: "{{ _container_secrets }}"
|
secrets: "{{ _container_secrets }}"
|
||||||
env: "{{ container_env }}"
|
env: "{{ container_env }}"
|
||||||
|
cap_add: "{{ container_add_capabilities }}"
|
||||||
label: "{{ _container_labels if _container_labels | length > 0 else omit }}"
|
label: "{{ _container_labels if _container_labels | length > 0 else omit }}"
|
||||||
state: quadlet
|
state: quadlet
|
||||||
quadlet_file_mode: "0600"
|
quadlet_file_mode: "0600"
|
||||||
|
|||||||
Reference in New Issue
Block a user