infra-role-postgres-ha/tasks/start.yml

17 lines
464 B
YAML
Raw Normal View History

---
- name: 'Create compose file'
template:
src: 'docker-compose.yml.j2'
dest: '{{ postgres_ha_compose_file }}'
owner: 'dockremap'
group: 'docker'
mode: 0644
- name: 'Create database container'
2024-05-30 14:29:14 +00:00
community.docker.docker_compose_v2:
project_src: '{{ postgres_ha_service_path }}'
files: '{{ postgres_ha_compose_file }}'
state: '{{ compose_state }}'
recreate: '{{ compose_recreate }}'
2024-05-30 14:29:14 +00:00
pull: always