This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/develop by this push:
new 4e50fab5e9 Ansible: Use inventory_hostname for CN of default
self-signed cert
4e50fab5e9 is described below
commit 4e50fab5e9dcf995bc80f7d16322452a96bb9ff8
Author: Marcus Christie <[email protected]>
AuthorDate: Fri May 26 11:32:29 2023 -0400
Ansible: Use inventory_hostname for CN of default self-signed cert
---
dev-tools/ansible/roles/httpd/tasks/main.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-tools/ansible/roles/httpd/tasks/main.yml
b/dev-tools/ansible/roles/httpd/tasks/main.yml
index c7236d03fc..70bc08f23e 100644
--- a/dev-tools/ansible/roles/httpd/tasks/main.yml
+++ b/dev-tools/ansible/roles/httpd/tasks/main.yml
@@ -32,7 +32,7 @@
ignore_errors: yes
- name: create default ssl vhost certificate
- command: openssl req -x509 -sha256 -newkey rsa:2048 -keyout {{
httpd_default_ssl_vhost_certificate_key_location[ansible_os_family]}} -out {{
httpd_default_ssl_vhost_certificate_location[ansible_os_family]}} -days 1024
-nodes -subj '/CN={{ ansible_host }}'
+ command: openssl req -x509 -sha256 -newkey rsa:2048 -keyout {{
httpd_default_ssl_vhost_certificate_key_location[ansible_os_family]}} -out {{
httpd_default_ssl_vhost_certificate_location[ansible_os_family]}} -days 1024
-nodes -subj '/CN={{ inventory_hostname }}'
become: yes
when: default_vhost_ssl_cert_check is failed