1
0
Fork 0
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:
Aliaksandr Mianzhynski 2021-11-26 13:22:36 +03:00 committed by GitHub
parent 46578d246a
commit 3e7f7a00a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 4 deletions

View file

@ -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: