deploy mariadb
All checks were successful
Deploy Containers / Prepare (push) Successful in 20s

This commit is contained in:
2025-11-26 23:36:34 -05:00
parent c653c2ac43
commit 71b1939f98
3 changed files with 20 additions and 24 deletions

View File

@@ -103,15 +103,12 @@
- name: Deploy Owncloud
import_tasks: tasks/owncloud.yml
tags: owncloud_deploy
- name: Deploy Wings
import_tasks: tasks/wings.yml
tags: wings_deploy
- name: Deploy Pelican
import_tasks: tasks/pelican.yml
tags: pelican_deploy
- name: Deploy Database
import_tasks: tasks/postgres.yml
tags: postgres_deploy
import_tasks: tasks/mariadb.yml
tags: mariadb_deploy
- hosts: nas

18
tasks/mariadb.yml Normal file
View File

@@ -0,0 +1,18 @@
---
- name: Deploy MariaDB Database
include_role:
name: docker
vars:
name: mariadb
directories:
- "{{ data_dir }}/db"
image:
name: mariadb
tag: latest
networks:
- name: "{{ docker_network_name }}"
volumes:
- "{{ data_dir }}/db:/var/lib/mysql"
env:
MYSQL_USER: "root"
MYSQL_ROOT_PASSWORD: "{{ GLOBAL_POSTGRES_PASSWORD }}"

View File

@@ -1,19 +0,0 @@
---
- name: Deploy Postgres Database
include_role:
name: docker
vars:
name: postgresql
directories:
- "{{ data_dir }}/db"
image:
name: postgres
tag: "17"
networks:
- name: "{{ docker_network_name }}"
volumes:
- "{{ data_dir }}/db:/var/lib/postgresql/data"
env:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "{{ GLOBAL_POSTGRES_PASSWORD }}"
PGDATA: "/var/lib/postgresql/data/pgdata"