ansible/playbooks/manual/rebuild/mote.yml
Ryan Lerch 62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00

15 lines
523 B
YAML

---
- 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:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- ansible.builtin.file: dest=/var/cache/httpd/mote/cache.json state=absent
- service: name="httpd" state=restarted
- service: name="mote-updater" state=restarted