Debian Codegraph @

ansible_collections/community/crypto/tests/integration/targets/acme_account/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 - block:
12 - name: Running tests with OpenSSL backend
13 ansible.builtin.include_tasks: impl.yml
14 vars:
15 select_crypto_backend: openssl
16
17 - ansible.builtin.import_tasks: ../tests/validate.yml
18
19 # Old 0.9.8 versions have insufficient CLI support for signing with EC keys
20 when: openssl_version is version('1.0.0', '>=')
21
22 - name: Remove output directory
23 ansible.builtin.file:
24 path: "{{ remote_tmp_dir }}"
25 state: absent
26
27 - name: Re-create output directory
28 ansible.builtin.file:
29 path: "{{ remote_tmp_dir }}"
30 state: directory
31
32 - block:
33 - name: Running tests with cryptography backend
34 ansible.builtin.include_tasks: impl.yml
35 vars:
36 select_crypto_backend: cryptography
37
38 - ansible.builtin.import_tasks: ../tests/validate.yml
39
40 when: cryptography_version is version('3.3', '>=')