我有以下 Ansible 剧本来颁发和安装证书:
- name: Issue certificate
shell: acme.sh --issue --dns dns_acmeproxy -d {{ server_name }}
- name: Install certificate
shell: >-
acme.sh --dns dns_acmeproxy -d {{ server_name }}
--install-cert
--key-file "/etc/pki/tls/private/{{ server_name }}.key"
--fullchain-file "/etc/pki/tls/certs/{{ server_name }}.crt"
--reloadcmd "systemctl restart nginx"
register: installcert
failed_when: installcert.rc != 0
有没有办法使用假server_name
或/和不调用 ACME 来编写分子收敛测试?