Skip to content

Commit

Permalink
Reorder tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Nov 7, 2023
1 parent 52637fa commit 1a8cd57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions roles/unifi/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
dns_zone: "{{ lookup('vars', role_name + '_dns_zone') }}"
dns_proxy: "{{ lookup('vars', role_name + '_dns_proxy') }}"

- name: Remove existing Docker container
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/docker/remove_docker_container.yml"

- name: Create directories
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/directories/create_directories.yml"

- name: "Unifi | Import init-mongo.js"
ansible.builtin.template:
src: init-mongo.js.j2
Expand All @@ -32,11 +38,5 @@
mongodb_docker_image_tag: "4.4"
mongodb_docker_volumes_custom: ["/opt/unifi/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro"]

- name: Remove existing Docker container
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/docker/remove_docker_container.yml"

- name: Create directories
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/directories/create_directories.yml"

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

0 comments on commit 1a8cd57

Please sign in to comment.