feat(postgresql): add ansible role for postgresql deployment
This commit is contained in:
12
roles/postgresql/handlers/main.yml
Normal file
12
roles/postgresql/handlers/main.yml
Normal 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
|
Reference in New Issue
Block a user