---
- name: Rebuild and restart clay
  community.docker.docker_image:
    name: clay:local
    build:
      path: "{{ clay_data_dir }}"
    source: build
    force_source: true
    state: present
  notify: Restart clay

- name: Restart clay
  community.docker.docker_compose_v2:
    project_src: "{{ clay_data_dir }}"
    state: present
    recreate: always
