changed to os-dependent httpd conf

Changed task to set http daemon config to use {Debian,RedHat}
dependent dictionary for template name and destination. Also
removed extraneous http daemon restart, since this is handily
handled by the handler.


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/bb96168e
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/bb96168e
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/bb96168e

Branch: refs/heads/ansible-testing-0.17
Commit: bb96168ee4ca0962ebc7d4e1e090f524863845c2
Parents: 125abd2
Author: jecoulte <[email protected]>
Authored: Fri Jan 27 11:39:53 2017 -0500
Committer: jecoulte <[email protected]>
Committed: Fri Jan 27 11:39:53 2017 -0500

----------------------------------------------------------------------
 dev-tools/ansible/roles/pga/tasks/main.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/bb96168e/dev-tools/ansible/roles/pga/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/pga/tasks/main.yml 
b/dev-tools/ansible/roles/pga/tasks/main.yml
index 14370ed..974ab58 100644
--- a/dev-tools/ansible/roles/pga/tasks/main.yml
+++ b/dev-tools/ansible/roles/pga/tasks/main.yml
@@ -74,11 +74,11 @@
 #   become: yes
 
 - name: copy httpd.conf file
-  template: src=httpd.conf.j2 dest="{{ httpd_conf_file_location }}/httpd.conf"
+  template: src={{ httpd_name[ansible_os_family] }}.conf.j2 dest={{ 
httpd_conf_file_location[ansible_os_family] }}
   become: yes
   notify:
     - restart httpd
 
-- name: start httpd service
-  service: name=httpd state=started
-  become: yes
+#- name: start httpd service
+#  service: name=httpd state=started
+#  become: yes

Reply via email to