Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible: Replace openssl_certificate_info with command #247

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@
register: iscorrect

- name: Get host certificate info
openssl_certificate_info:
path: "{{ ovirt_vdsm_trust_store }}/{{ ovirt_vdsm_cert_file }}"
command: openssl x509 -noout -ext subjectAltName -in "{{ ovirt_vdsm_trust_store }}/{{ ovirt_vdsm_cert_file }}"
register: host_certificate

- name: Check if host certificate contains subject alternative name
set_fact:
contains_san: "{{ host_certificate['subject_alt_name'] is search(ovirt_vds_hostname) }}"
contains_san: "{{ host_certificate.stdout is search(ovirt_vds_hostname) }}"

- name: Check if QEMU migration client certificates are present
stat:
Expand Down