mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
@@ -1,26 +1,21 @@
|
||||
|
||||
- name: Include dependency 'docker-core'
|
||||
- name: Include dependency 'sys-svc-docker'
|
||||
include_role:
|
||||
name: docker-core
|
||||
when: run_once_docker_core is not defined
|
||||
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 }}"
|
||||
name: "{{ POSTGRES_NETWORK_NAME }}"
|
||||
state: present
|
||||
ipam_config:
|
||||
- subnet: "{{ postgres_subnet }}"
|
||||
- subnet: "{{ POSTGRES_SUBNET }}"
|
||||
|
||||
- name: "include docker-compose role"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
- name: Wait for Postgres inside the container
|
||||
shell: "docker exec {{ postgres_name }} pg_isready -U postgres"
|
||||
register: pg_ready
|
||||
until: pg_ready.rc == 0
|
||||
retries: 30
|
||||
delay: 5
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
- name: install python-psycopg2
|
||||
community.general.pacman:
|
||||
|
Reference in New Issue
Block a user