Debian Codegraph @

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

raw
1 # Test code for the apt_key module.
2 # (c) 2017, James Tanner <[email protected]>
3
4 # This file is part of Ansible
5 #
6 # Ansible is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Ansible is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
18
19 - name: apt key tests
20 when:
21 - ansible_distribution in ('Ubuntu', 'Debian')
22 block:
23 - shell: which apt-key
24 ignore_errors: True
25 register: has_aptkey
26
27 - name: actually test if i have apt-key
28 when: has_aptkey is success
29 block:
30 - import_tasks: 'apt_key.yml'
31 - import_tasks: 'apt_key_inline_data.yml'
32 - import_tasks: 'file.yml'
33 - import_tasks: 'apt_key_binary.yml'