diff --git a/main.yml b/main.yml index f70556e..3039d5e 100644 --- a/main.yml +++ b/main.yml @@ -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 diff --git a/tasks/mariadb.yml b/tasks/mariadb.yml new file mode 100644 index 0000000..230847d --- /dev/null +++ b/tasks/mariadb.yml @@ -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 }}" diff --git a/tasks/postgres.yml b/tasks/postgres.yml deleted file mode 100644 index 5e76fad..0000000 --- a/tasks/postgres.yml +++ /dev/null @@ -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"