---
- name: Set common facts
  ansible.builtin.import_tasks: tasks/set-default-facts.yml

- name: Deploy {{ role_name }}
  vars:
    svc: "{{ webdis_svc }}"
    compose: "{{ webdis_compose }}"
  block:
    - name: Import prepare tasks for common service
      ansible.builtin.import_tasks: tasks/prepare-common-service.yml

    - name: Copy the config
      ansible.builtin.copy:
        src: webdis.json
        dest: "{{ (service_path, 'webdis.json') | path_join }}"
        mode: "0755"

    - name: Import start tasks for common service
      ansible.builtin.import_tasks: tasks/start-common-service.yml