Skip to content

Commit

Permalink
stash: avoid stash overriding the config
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Sep 30, 2024
1 parent 9682435 commit 8fc0d3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/stash/tasks/subtasks/auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
state: present
timeout: 600

- name: Stop Docker container
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/docker/stop_docker_container.yml"

- name: Allow public access without auth
ansible.builtin.shell: |
yyq -i '.dangerous_allow_public_without_auth = "true"' {{ stash_paths_location }}/config/config.yml
Expand All @@ -37,4 +40,4 @@
become_user: "{{ user.name }}"

- name: Restart Docker container
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/docker/restart_docker_container.yml"
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/docker/start_docker_container.yml"

0 comments on commit 8fc0d3f

Please sign in to comment.