diff options
Diffstat (limited to 'playbooks/roles/traextor/tasks/main.yml')
-rw-r--r-- | playbooks/roles/traextor/tasks/main.yml | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/playbooks/roles/traextor/tasks/main.yml b/playbooks/roles/traextor/tasks/main.yml index 19074fe..64dfc1e 100644 --- a/playbooks/roles/traextor/tasks/main.yml +++ b/playbooks/roles/traextor/tasks/main.yml @@ -1,19 +1,9 @@ --- -- name: Build traextor compose dirs - ansible.builtin.file: - state: directory - dest: '{{ traextor_base }}/{{ item.path }}' - with_filetree: '../templates' - when: item.state == 'directory' +- name: Deploy traextor + ansible.builtin.import_tasks: manage-docker-swarm-service.yml + vars: + service_name: traextor + template_render_dir: "../templates" + service_destination_dir: "{{ traextor_base }}" -- name: Build traextor compose files - ansible.builtin.template: - src: '{{ item.src }}' - dest: '{{ traextor_base }}/{{ item.path }}' - with_filetree: '../templates' - when: item.state == 'file' - -- name: Deploy Traextor stack - ansible.builtin.command: - cmd: "docker stack deploy -c {{ traextor_base }}/stacks/docker-compose.yml traextor" |