---
- block:
  - name: "load docker, proxy for '{{ application_id }}'"
    include_role:
      name: cmp-docker-proxy

  - name: "Copy '{{ application_id }}' files"
    template:
      src: "{{ item.source }}"
      dest: "{{ item.target }}"
      mode: '0755'
    loop:
      - { source: "server.js.j2",     target: "{{ simpleicons_host_server_file }}" }
      - { source: "package.json.j2",  target: "{{ simpleicons_host_package_file }}" }
    notify:
      - docker compose up
  - include_tasks: utils/run_once.yml
  when: run_once_web_svc_simpleicons is not defined
