changed httpd name var to rely on OS

now using a dictionary with OS family as key to get the
correct name of the http daemon for Debian/RedHat.


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

Branch: refs/heads/ansible-testing-0.17
Commit: 09c8f51d2a91f7125111853c881c3a2ec9b17c2d
Parents: 6512efc
Author: jecoulte <[email protected]>
Authored: Fri Jan 27 10:13:31 2017 -0500
Committer: jecoulte <[email protected]>
Committed: Fri Jan 27 10:13:31 2017 -0500

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


http://git-wip-us.apache.org/repos/asf/airavata/blob/09c8f51d/dev-tools/ansible/roles/pga/handlers/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/pga/handlers/main.yml 
b/dev-tools/ansible/roles/pga/handlers/main.yml
index 9c6c12f..9465221 100644
--- a/dev-tools/ansible/roles/pga/handlers/main.yml
+++ b/dev-tools/ansible/roles/pga/handlers/main.yml
@@ -5,9 +5,9 @@
   become: yes
 
 - name: start httpd
-  service: name=httpd state=started
+  service: name={{ httpd_name[ansible_os_family] }} state=started
   become: yes
 
 - name: restart httpd
-  service: name=httpd state=restarted
+  service: name={{ httpd_name[ansible_os_family] }} state=restarted
   become: yes

Reply via email to