mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Add 'platform' parameter mapping for podman container quadlet
Signed-off-by: Thomas Preindl <tompre@users.noreply.github.com>
This commit is contained in:
parent
e8011867ff
commit
578bf3ebe0
2 changed files with 6 additions and 0 deletions
|
|
@ -316,6 +316,8 @@ class ContainerQuadlet(Quadlet):
|
|||
params["podman_args"].append(f"--pid {params['pid']}")
|
||||
if params["pid_file"]:
|
||||
params["podman_args"].append(f"--pid-file {params['pid_file']}")
|
||||
if params['platform']:
|
||||
params["podman_args"].append(f"--platform {params['platform']}")
|
||||
if params["preserve_fd"]:
|
||||
for pres in params["preserve_fd"]:
|
||||
params["podman_args"].append(f"--preserve-fd {pres}")
|
||||
|
|
|
|||
|
|
@ -1211,6 +1211,7 @@
|
|||
- web
|
||||
- db
|
||||
cpus: 0.5
|
||||
platform: linux/amd64
|
||||
annotation:
|
||||
this: "annotation_value"
|
||||
dns:
|
||||
|
|
@ -1289,6 +1290,7 @@
|
|||
- "NetworkAlias=db"
|
||||
- "StopSignal=9"
|
||||
- "PodmanArgs=--cpus 0.5"
|
||||
- "PodmanArgs=--platform linux/amd64"
|
||||
loop_control:
|
||||
label: "{{ item }}"
|
||||
|
||||
|
|
@ -1320,6 +1322,7 @@
|
|||
- web
|
||||
- db
|
||||
cpus: 0.5
|
||||
platform: linux/amd64
|
||||
annotation:
|
||||
this: "annotation_value"
|
||||
dns:
|
||||
|
|
@ -1382,6 +1385,7 @@
|
|||
- web
|
||||
- db
|
||||
cpus: 0.5
|
||||
platform: linux/amd64
|
||||
annotation:
|
||||
this: "annotation_value"
|
||||
dns:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue