mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-21 20:59:10 +00:00
21 lines
409 B
YAML
21 lines
409 B
YAML
# test code for the pgp_keyring action
|
||
# (c) 2025–2026, 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
|