Skip to content

Commit

Permalink
your_spotify: rename database instance
Browse files Browse the repository at this point in the history
Currently produces invalid host format warnings.
  • Loading branch information
saltydk committed Dec 25, 2023
1 parent b301ee6 commit 6af13e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/your_spotify/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ your_spotify_docker_envs_default:
SPOTIFY_PUBLIC: "{{ your_spotify.public_key }}"
SPOTIFY_SECRET: "{{ your_spotify.secret_key }}"
CORS: "{{ your_spotify_web_url + ':443' }}"
MONGO_ENDPOINT: "mongodb://your_spotify_db:27017/your_spotify"
MONGO_ENDPOINT: "mongodb://your-spotify-db:27017/your_spotify"
your_spotify_docker_envs_custom: {}
your_spotify_docker_envs: "{{ your_spotify_docker_envs_default
| combine(your_spotify_docker_envs_custom) }}"
Expand Down
7 changes: 6 additions & 1 deletion roles/your_spotify/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@
dns_zone: "{{ lookup('vars', role_name + '_dns_zone') }}"
dns_proxy: "{{ lookup('vars', role_name + '_dns_proxy') }}"

- name: Remove old Database Docker container
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/docker/remove_docker_container.yml"
vars:
_var_prefix: "your_spotify_db"

- name: MongoDB Role
ansible.builtin.include_role:
name: mongodb
vars:
mongodb_instances: ["your_spotify_db"]
mongodb_instances: ["your-spotify-db"]
mongodb_paths_location: "{{ server_appdata_path }}/{{ your_spotify_name }}"

- name: Remove existing Docker container
Expand Down

0 comments on commit 6af13e1

Please sign in to comment.