Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/java_keystore/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - when: has_java_keytool
12 connection: local
13 block:
14 - name: Include tasks to create ssl materials on the controller
15 include_tasks: prepare.yml
16
17 - set_fact:
18 ssl_backends: ['openssl']
19
20 - set_fact:
21 ssl_backends: "{{ ssl_backends + ['cryptography'] }}"
22 when: cryptography_version.stdout is version('3.0', '>=')
23
24 - when: has_java_keytool
25 block:
26 - name: Include tasks to play with 'certificate' and 'private_key' contents
27 include_tasks: tests.yml
28 vars:
29 remote_cert: false
30 loop: "{{ ssl_backends }}"
31 loop_control:
32 loop_var: ssl_backend
33
34 - name: Include tasks to create ssl materials on the remote host
35 include_tasks: prepare.yml
36
37 - name: Include tasks to play with 'certificate_path' and 'private_key_path' locations
38 include_tasks: tests.yml
39 vars:
40 remote_cert: true
41 loop: "{{ ssl_backends }}"
42 loop_control:
43 loop_var: ssl_backend