Debian Codegraph @

test/integration/targets/apt_key/tasks/apt_key.yml

raw
1 - name: Ensure key is not there to start with.
2 apt_key:
3 id: 36A1D7869245C8950F966E92D8576A8BA88D21E9
4 state: absent
5
6 - name: run first docs example
7 apt_key:
8 keyserver: keyserver.ubuntu.com
9 id: 36A1D7869245C8950F966E92D8576A8BA88D21E9
10 register: apt_key_test0
11
12 - debug: var=apt_key_test0
13
14 - name: re-run first docs example
15 apt_key:
16 keyserver: keyserver.ubuntu.com
17 id: 36A1D7869245C8950F966E92D8576A8BA88D21E9
18 register: apt_key_test1
19
20 - name: validate results
21 assert:
22 that:
23 - 'apt_key_test0.changed is defined'
24 - 'apt_key_test0.changed'
25 - 'not apt_key_test1.changed'