From 506485a596cad8db44b9ddd67b97f1e80705282d Mon Sep 17 00:00:00 2001 From: Tim Flink Date: Fri, 17 Jul 2015 20:03:31 +0000 Subject: [PATCH] tagging static site setup bits for qadevel-stg --- playbooks/groups/qadevel-stg.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/groups/qadevel-stg.yml b/playbooks/groups/qadevel-stg.yml index 5984888fb8..08136971a6 100644 --- a/playbooks/groups/qadevel-stg.yml +++ b/playbooks/groups/qadevel-stg.yml @@ -100,17 +100,25 @@ tasks: - name: ensure ServerName is set in ssl.conf replace: dest=/etc/httpd/conf.d/ssl.conf regexp='^#ServerName .*$' replace='ServerName {{ external_hostname }}:443' + tags: + - qadevelstaticsites - name: ensure ServerName is set in httpd.conf replace: dest=/etc/httpd/conf/httpd.conf regexp='^#ServerName .*$' replace='ServerName {{ external_hostname }}:443' + tags: + - qadevelstaticsites - name: create dirs for static sites file: path={{ item.document_root }} state=directory owner=apache group=apache mode=1755 with_items: static_sites + tags: + - qadevelstaticsites - name: generate virtualhosts for static sites template: src={{ files }}/httpd/newvirtualhost.conf.j2 dest=/etc/httpd/conf.d/{{ item.name }}.conf owner=root group=root mode=0644 with_items: static_sites + tags: + - qadevelstaticsites handlers: - include: "{{ handlers }}/restart_services.yml"