feat(postgresql): add ansible role for postgresql deployment

This commit is contained in:
2024-11-14 18:38:38 +01:00
parent bff5cce7e9
commit 6f70e8c2bf
17 changed files with 529 additions and 0 deletions

View File

@ -0,0 +1,12 @@
---
- name: Restart postgresql container '{{ postgresql_container_name }}' (docker)
community.docker.docker_container:
name: "{{ postgresql_container_name }}"
state: "{{ postgresql_container_state }}"
restart: true
comparisons:
'*': "ignore"
when:
- postgresql_deployment_method == 'docker'
- postgresql_container_state not in ['absent', 'stopped']
listen: postgresql_restart