1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Add 'group_add' to 'GroupAdd' parameter mapping for podman container quadlet

Signed-off-by: Thomas Preindl <tompre@users.noreply.github.com>
This commit is contained in:
Thomas Preindl 2024-09-22 22:10:23 +02:00
parent fa03c07f31
commit e2cb2c5835
2 changed files with 12 additions and 0 deletions

View file

@ -88,6 +88,7 @@ class ContainerQuadlet(Quadlet):
'gidmap': 'GIDMap',
'global_args': 'GlobalArgs',
'group': 'Group', # Does not exist in module parameters
'group_add': 'GroupAdd',
'healthcheck': 'HealthCmd',
'healthcheck_interval': 'HealthInterval',
'healthcheck_failure_action': 'HealthOnFailure',

View file

@ -1200,6 +1200,9 @@
quadlet_dir: /tmp
command: sleep 1d
recreate: true
group_add:
- admin
- users
etc_hosts:
host1: 127.0.0.1
host2: 127.0.0.1
@ -1273,6 +1276,8 @@
- "PodmanArgs=--add-host host2:127.0.0.1"
- "Label=somelabel=labelvalue"
- "WantedBy=default.target"
- "GroupAdd=admin"
- "GroupAdd=users"
loop_control:
label: "{{ item }}"
@ -1293,6 +1298,9 @@
quadlet_dir: /tmp
command: sleep 1d
recreate: true
group_add:
- admin
- users
etc_hosts:
host1: 127.0.0.1
host2: 127.0.0.1
@ -1346,6 +1354,9 @@
quadlet_dir: /tmp
command: sleep 1d
recreate: true
group_add:
- admin
- users
etc_hosts:
host1: 127.0.0.45
host2: 127.0.0.1