Debian Codegraph @

ansible_collections/community/crypto/tests/integration/targets/acme_ari_info/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 ####################################################################
7 # WARNING: These are designed specifically for Ansible tests #
8 # and should not be used as examples of how to write Ansible roles #
9 ####################################################################
10
11 - vars:
12 acme_certificate_profile: "{{ 'default' if acme_supports_profiles else omit }}"
13 when: acme_supports_ari
14 block:
15 - block:
16 - name: Running tests with OpenSSL backend
17 ansible.builtin.include_tasks: impl.yml
18 vars:
19 select_crypto_backend: openssl
20
21 - ansible.builtin.import_tasks: ../tests/validate.yml
22
23 # Old 0.9.8 versions have insufficient CLI support for signing with EC keys
24 when: 1 is version('1.0.0', '>=')
25
26 - name: Remove output directory
27 ansible.builtin.file:
28 path: "{{ remote_tmp_dir }}"
29 state: absent
30
31 - name: Re-create output directory
32 ansible.builtin.file:
33 path: "{{ remote_tmp_dir }}"
34 state: directory
35
36 - block:
37 - name: Running tests with cryptography backend
38 ansible.builtin.include_tasks: impl.yml
39 vars:
40 select_crypto_backend: cryptography
41
42 - ansible.builtin.import_tasks: ../tests/validate.yml
43
44 when: cryptography_version is version('3.3', '>=')