00_core.ymlΒΆ

---
- include_tasks: utils/once/flag.yml

- name: "πŸ“‚ Include sys-svc-compose (build deferred to stage the daemon first)"
  include_role:
    name: sys-svc-compose
  vars:
    compose_handlers_flush: false
    compose_repository_pull: false
    application_id: "svc-net-tor-smtp"

- name: "πŸ“ Create container network"
  include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/network/create.yml') }}"
  vars:
    network_role_id: "{{ application_id }}"

- name: "🎬 Stage the gateway build context"
  stack_host_copy:
    src: "{{ item.src }}"
    dest: "{{ [ lookup('container', application_id, 'directories.instance'), item.dest ] | path_join }}"
    mode: "0644"
  loop:
    - src: "python/tor_smtp_gateway.py"
      dest: "tor_smtp_gateway.py"
    - src: "requirements.txt"
      dest: "requirements.txt"
  loop_control:
    label: "{{ item.dest }}"
  when: IS_STACK_HOST | bool

- name: "🚿 Flush compose handlers (build + up with the daemon present)"
  meta: flush_handlers