From 5e7658b2932555a55e8a8fd701a5bd408425fbf3 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 24 Jun 2015 22:15:23 +0000 Subject: [PATCH] Add a playbook to rebuild the mote cache. --- playbooks/manual/rebuild/mote.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 playbooks/manual/rebuild/mote.yml diff --git a/playbooks/manual/rebuild/mote.yml b/playbooks/manual/rebuild/mote.yml new file mode 100644 index 0000000000..9bbb9d875b --- /dev/null +++ b/playbooks/manual/rebuild/mote.yml @@ -0,0 +1,14 @@ +- name: Nuke the mote cache and restart the services to rebuild it. + hosts: value;value-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 + handlers: + - include: "{{ handlers }}/restart_services.yml" + + tasks: + - file: dest=/var/cache/httpd/mote/cache.json state=absent + - service: name="httpd" state=restarted + - service: name="mote-updater" state=restarted