From d367982cbad30ed8f88fbb915ed7e53b6dc93515 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 12 May 2014 21:52:10 +0000 Subject: [PATCH] Move publican stuff to another play --- playbooks/groups/docs-backend.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/docs-backend.yml b/playbooks/groups/docs-backend.yml index 0aa809ca43..361d1cdddb 100644 --- a/playbooks/groups/docs-backend.yml +++ b/playbooks/groups/docs-backend.yml @@ -2,6 +2,7 @@ hosts: docs-backend user: root gather_facts: False + accelerate: True vars_files: - /srv/web/infra/ansible/vars/global.yml @@ -18,6 +19,7 @@ hosts: docs-backend user: root gather_facts: True + accelerate: True vars_files: - /srv/web/infra/ansible/vars/global.yml @@ -32,7 +34,6 @@ - fas_client - collectd/base - yum-cron - - { role: publican_webhost, kojitag: "el6-docs", publican_brand: "fedora", site_title: "Fedora Documentation", site_host: "http://docs.fedoraproject.org" } tasks: # this is how you include other task lists @@ -46,3 +47,20 @@ handlers: - include: "{{ handlers }}/restart_services.yml" + +- name: setup publican web + hosts: docs-backend + user: root + gather_facts: True + accelerate: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "{{ private }}/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + + roles: + - { role: publican_webhost, kojitag: "el6-docs", publican_brand: "fedora", site_title: "Fedora Documentation", site_host: "http://docs.fedoraproject.org" } + + handlers: + - include: "{{ handlers }}/restart_services.yml"