15 lines
1005 B
YAML
15 lines
1005 B
YAML
---
|
|
|
|
- name: Export Cert from {{ qxl_driver }}
|
|
win_shell: '$cert = (Get-AuthenticodeSignature "{{ virtio_win_virtio_path }}\{{ qxl_driver }}\{{ virtio_driver_directory }}\amd64\{{ qxl_driver }}.cat").SignerCertificate; [System.IO.File]::WriteAllBytes("{{ ansible_env.TEMP }}\redhat_{{ qxl_driver }}.cer", $cert.Export([System.Security.Cryptography.X509Certificates.X509ContentType]::Cert));'
|
|
|
|
- name: Export Cert from balloon
|
|
win_shell: '$cert = (Get-AuthenticodeSignature "{{ virtio_win_virtio_path }}\Balloon\{{ virtio_driver_directory }}\amd64\blnsvr.exe").SignerCertificate; [System.IO.File]::WriteAllBytes("{{ ansible_env.TEMP }}\redhat_balloon.cer", $cert.Export([System.Security.Cryptography.X509Certificates.X509ContentType]::Cert));'
|
|
|
|
- name: Install RH certificates to TrustedPublisher certificate store
|
|
win_command: 'certutil.exe -f -addstore "TrustedPublisher" {{ ansible_env.TEMP }}\redhat_{{ item }}.cer'
|
|
notify:
|
|
- Delete downloaded
|
|
loop:
|
|
- "{{ qxl_driver }}"
|
|
- balloon |