1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00
community.general/tests/integration/targets/pgp_keyring/tasks/main.yml
2026-03-01 12:53:09 +02:00

21 lines
409 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# test code for the pgp_keyring action
# (c) 20252026, Eero Aaltonen
- name: Install Microsoft Package signing key
pgp_keyring:
src: microsoft.asc
dest: microsoft.pgp
- name: stat output file
stat:
path: microsoft.pgp
register: binary_keyring
- assert:
that:
binary_keyring.stat.exists
- name: Remove binary keyring
file:
path: binary_keyring.path
state: absent