---
- 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