mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
openssl_*: add backup option (#54294)
This commit is contained in:
parent
5517b0384f
commit
188903448a
19 changed files with 494 additions and 2 deletions
|
|
@ -53,4 +53,36 @@
|
|||
force: yes
|
||||
register: output_broken
|
||||
|
||||
- name: Generate params
|
||||
openssl_dhparam:
|
||||
path: '{{ output_dir }}/dh_backup.pem'
|
||||
size: 512
|
||||
backup: yes
|
||||
register: dhparam_backup_1
|
||||
- name: Generate params (idempotent)
|
||||
openssl_dhparam:
|
||||
path: '{{ output_dir }}/dh_backup.pem'
|
||||
size: 512
|
||||
backup: yes
|
||||
register: dhparam_backup_2
|
||||
- name: Generate params (change)
|
||||
openssl_dhparam:
|
||||
path: '{{ output_dir }}/dh_backup.pem'
|
||||
size: 512
|
||||
force: yes
|
||||
backup: yes
|
||||
register: dhparam_backup_3
|
||||
- name: Generate params (remove)
|
||||
openssl_dhparam:
|
||||
path: '{{ output_dir }}/dh_backup.pem'
|
||||
state: absent
|
||||
backup: yes
|
||||
register: dhparam_backup_4
|
||||
- name: Generate params (remove, idempotent)
|
||||
openssl_dhparam:
|
||||
path: '{{ output_dir }}/dh_backup.pem'
|
||||
state: absent
|
||||
backup: yes
|
||||
register: dhparam_backup_5
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue