This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/master by this push:
new a8bb4435e3 Ansible: Enable default site on Debian (Ubuntu) systems
a8bb4435e3 is described below
commit a8bb4435e36a2efa2841e028c9224efa4a8c55bf
Author: Marcus Christie <[email protected]>
AuthorDate: Thu Sep 29 11:50:51 2022 -0400
Ansible: Enable default site on Debian (Ubuntu) systems
---
dev-tools/ansible/roles/httpd/tasks/main.yml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dev-tools/ansible/roles/httpd/tasks/main.yml
b/dev-tools/ansible/roles/httpd/tasks/main.yml
index 6b3ae38c9d..c7236d03fc 100644
--- a/dev-tools/ansible/roles/httpd/tasks/main.yml
+++ b/dev-tools/ansible/roles/httpd/tasks/main.yml
@@ -46,6 +46,13 @@
notify:
- restart httpd
+- name: Enable default site in Apache (Debian)
+ command: a2ensite {{ httpd_default_conf_file_location[ansible_os_family] |
basename | splitext | first }}
+ become: yes
+ notify:
+ - restart httpd
+ when: ansible_os_family == "Debian"
+
- name: copy modified ssl.conf file
template: src={{ httpd_ssl_conf_template }} dest={{
httpd_ssl_conf_file_location[ansible_os_family] }} backup=yes
become: yes