mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Optimized tests für run once
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: >-
|
||||
@@ -12,17 +11,15 @@ galaxy_info:
|
||||
https://www.veen.world
|
||||
min_ansible_version: "2.9"
|
||||
platforms:
|
||||
- name: Docker
|
||||
versions:
|
||||
- "latest"
|
||||
- name: Docker
|
||||
versions:
|
||||
- "latest"
|
||||
galaxy_tags:
|
||||
- postgresql
|
||||
- docker
|
||||
- database
|
||||
- administration
|
||||
- central-database
|
||||
- postgresql
|
||||
- docker
|
||||
- database
|
||||
- administration
|
||||
- central-database
|
||||
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
|
||||
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
|
||||
documentation: "https://docs.infinito.nexus"
|
||||
dependencies:
|
||||
- docker-core # Loading it here to avoid extra flush for network init
|
||||
|
@@ -1,12 +1,20 @@
|
||||
- name: Load former meta dependencies once
|
||||
block:
|
||||
- name: Include moved dependency 'docker-core'
|
||||
include_role:
|
||||
name: docker-core
|
||||
- set_fact:
|
||||
run_once_svc_db_postgres: true
|
||||
when: run_once_svc_db_postgres is not defined
|
||||
- name: Create Docker network for PostgreSQL
|
||||
community.docker.docker_network:
|
||||
name: "{{ postgres_network_name }}"
|
||||
state: present
|
||||
ipam_config:
|
||||
- subnet: "{{ postgres_subnet }}"
|
||||
- subnet: "{{ postgres_subnet }}"
|
||||
|
||||
- name: "include docker-compose role"
|
||||
include_role:
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
- name: Wait for Postgres inside the container
|
||||
@@ -17,6 +25,6 @@
|
||||
delay: 5
|
||||
|
||||
- name: install python-psycopg2
|
||||
community.general.pacman:
|
||||
community.general.pacman:
|
||||
name: python-psycopg2
|
||||
state: present
|
||||
|
Reference in New Issue
Block a user