Add a playbook to rebuild the mote cache.
This commit is contained in:
parent
381a4f57b1
commit
5e7658b293
1 changed files with 14 additions and 0 deletions
14
playbooks/manual/rebuild/mote.yml
Normal file
14
playbooks/manual/rebuild/mote.yml
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue