mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-03-22 02:29:08 +00:00
Add secrets driver and driver opts support (#344)
This commit is contained in:
parent
46578d246a
commit
3e7f7a00a0
2 changed files with 42 additions and 4 deletions
|
|
@ -73,6 +73,20 @@
|
|||
that:
|
||||
- removed is not changed
|
||||
|
||||
- name: Create secret with file driver and custom options
|
||||
containers.podman.podman_secret:
|
||||
name: mysecret
|
||||
data: secret content
|
||||
driver: file
|
||||
driver_opts:
|
||||
a: b
|
||||
c: d
|
||||
|
||||
- name: Remove secret
|
||||
containers.podman.podman_secret:
|
||||
state: absent
|
||||
name: mysecret
|
||||
|
||||
always:
|
||||
- name: Remove container that uses secret
|
||||
containers.podman.podman_container:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue