
- name: Include dependency 'sys-svc-docker'
  include_role:
    name: sys-svc-docker
  when: run_once_sys_svc_docker is not defined

- name: Create Docker network for PostgreSQL
  community.docker.docker_network:
    name: "{{ POSTGRES_NETWORK_NAME }}"
    state: present
    ipam_config:
    - subnet: "{{ POSTGRES_SUBNET }}"

- name: "include docker-compose role"
  include_role:
    name: docker-compose
  vars:
    docker_compose_flush_handlers: true

- name: install python-psycopg2
  community.general.pacman:
    name: python-psycopg2
    state: present
