mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
22
roles/web-app-pgadmin/tasks/configuration.yml
Normal file
22
roles/web-app-pgadmin/tasks/configuration.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
- name: "load variables from {{ database_var_file }}"
|
||||
include_vars: "{{ database_var_file }}"
|
||||
|
||||
- name: "loading database configuration variables"
|
||||
include_vars:
|
||||
file: "{{ role_path }}/vars/db_config.yml"
|
||||
|
||||
- name: "Render servers.json file"
|
||||
template:
|
||||
src: servers.json.j2
|
||||
dest: "{{ pgadmin_host_server_file }}"
|
||||
mode: "0644"
|
||||
notify: docker compose up
|
||||
|
||||
- name: "Render .pgpass file"
|
||||
template:
|
||||
src: pgpass.j2
|
||||
dest: "{{ pgadmin_host_password_file }}"
|
||||
owner: "{{ pgadmin_user }}"
|
||||
group: "{{ pgadmin_group }}"
|
||||
mode: "0600"
|
||||
notify: docker compose up
|
15
roles/web-app-pgadmin/tasks/main.yml
Normal file
15
roles/web-app-pgadmin/tasks/main.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: "include docker-compose role"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
- name: "include role webserver-proxy-domain for {{application_id}}"
|
||||
include_role:
|
||||
name: webserver-proxy-domain
|
||||
vars:
|
||||
domain: "{{ domains | get_domain(application_id) }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- name: "configure pgadmin servers"
|
||||
include_tasks: configuration.yml
|
||||
when: applications[application_id].server_mode | bool
|
Reference in New Issue
Block a user