Skip to content

Commit

Permalink
Don't create DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed May 4, 2023
1 parent 5ced609 commit 357a2c3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions roles/docspell/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@
mariadb_paths_folder: "{{ docspell_name }}"
mariadb_paths_location: "{{ server_appdata_path }}/{{ docspell_paths_folder }}/mariadb"

- name: Create docspell database
community.mysql.mysql_db:
name: "{{ docspell_name }}"
login_host: "{{ docspell_name }}_mariadb"
login_user: "{{ mariadb_docker_env_user }}"
login_password: "{{ mariadb_docker_env_password }}"
state: present

- name: Solr Role
ansible.builtin.include_role:
name: solr
Expand Down
8 changes: 0 additions & 8 deletions roles/koel/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@
mariadb_paths_folder: "{{ koel_name }}"
mariadb_paths_location: "{{ server_appdata_path }}/{{ koel_paths_folder }}/db"

- name: MariaDB | Create koel database
community.mysql.mysql_db:
name: "{{ koel_name }}"
login_host: "{{ koel_name }}_mariadb"
login_user: "{{ mariadb_docker_env_user }}"
login_password: "{{ mariadb_docker_env_password }}"
state: present

- name: Check if db folder exists
ansible.builtin.stat:
path: "{{ koel_paths_location }}/vars.ini"
Expand Down
14 changes: 0 additions & 14 deletions roles/plexshare/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
#########################################################################
# Repository: https://github.com/Chewbaka69/PlexShare/blob/master/docker-compose.yml
---
- name: Check if db folder exists
ansible.builtin.stat:
path: "{{ server_appdata_path }}/{{ plexshare_paths_folder }}/mariadb"
register: stat_plexshare_db_folder

- name: MariaDB Role
ansible.builtin.include_role:
name: mariadb
Expand All @@ -22,15 +17,6 @@
mariadb_paths_folder: "{{ plexshare_name }}"
mariadb_paths_location: "{{ server_appdata_path }}/{{ plexshare_paths_folder }}/mariadb"

- name: MariaDB | Create plexshare database
community.mysql.mysql_db:
name: "{{ plexshare_name }}"
login_host: "{{ plexshare_name }}_mariadb"
login_user: "{{ mariadb_docker_env_user }}"
login_password: "{{ mariadb_docker_env_password }}"
state: present
when: not stat_plexshare_db_folder.stat.exists

- name: Add DNS record
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/dns/tasker.yml"
vars:
Expand Down

0 comments on commit 357a2c3

Please sign in to comment.