This commit is contained in:
7
main.yml
7
main.yml
@@ -103,15 +103,12 @@
|
|||||||
- name: Deploy Owncloud
|
- name: Deploy Owncloud
|
||||||
import_tasks: tasks/owncloud.yml
|
import_tasks: tasks/owncloud.yml
|
||||||
tags: owncloud_deploy
|
tags: owncloud_deploy
|
||||||
- name: Deploy Wings
|
|
||||||
import_tasks: tasks/wings.yml
|
|
||||||
tags: wings_deploy
|
|
||||||
- name: Deploy Pelican
|
- name: Deploy Pelican
|
||||||
import_tasks: tasks/pelican.yml
|
import_tasks: tasks/pelican.yml
|
||||||
tags: pelican_deploy
|
tags: pelican_deploy
|
||||||
- name: Deploy Database
|
- name: Deploy Database
|
||||||
import_tasks: tasks/postgres.yml
|
import_tasks: tasks/mariadb.yml
|
||||||
tags: postgres_deploy
|
tags: mariadb_deploy
|
||||||
|
|
||||||
- hosts: nas
|
- hosts: nas
|
||||||
|
|
||||||
|
|||||||
18
tasks/mariadb.yml
Normal file
18
tasks/mariadb.yml
Normal 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 }}"
|
||||||
@@ -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"
|
|
||||||
Reference in New Issue
Block a user