From 616b5f8b18817a830cc54cf514c44028cb8acee2 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 15 Dec 2015 21:20:25 +0000 Subject: [PATCH] Add a playbook to rebuild the static sites. --- playbooks/manual/rebuild/websites.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 playbooks/manual/rebuild/websites.yml diff --git a/playbooks/manual/rebuild/websites.yml b/playbooks/manual/rebuild/websites.yml new file mode 100644 index 0000000000..07d03d6d9c --- /dev/null +++ b/playbooks/manual/rebuild/websites.yml @@ -0,0 +1,36 @@ +- name: Force a rebuild of website content on the backend builder + hosts: sundries;sundries-stg + user: root + become: apache + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + + tasks: + - name: Run syncStatic (this takes a while)... + command: /usr/local/bin/lock-wrapper syncStatic /usr/local/bin/syncStatic + +- name: Tell the proxies to sync that freshness + hosts: proxies;proxies-stg + user: root + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + + tasks: + - name: rsync each site in to place + command: /usr/bin/rsync --delete -a --no-owner --no-group sundries01::{{item}}/ /srv/web/{{item}}/ + with_items: + - getfedora.org + - arm.fedoraproject.org + - boot.fedoraproject.org + - fedoracommunity.org + - developer.fedoraproject.org + - fedoraproject.org + - fudcon.fedoraproject.org + - labs.fedoraproject.org + - mirrors.fedoraproject.org + - spins.fedoraproject.org + - start.fedoraproject.org