summaryrefslogtreecommitdiff
path: root/playbooks/roles/traextor/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/traextor/tasks/main.yml')
-rw-r--r--playbooks/roles/traextor/tasks/main.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/playbooks/roles/traextor/tasks/main.yml b/playbooks/roles/traextor/tasks/main.yml
new file mode 100644
index 0000000..19074fe
--- /dev/null
+++ b/playbooks/roles/traextor/tasks/main.yml
@@ -0,0 +1,19 @@
+---
+
+- name: Build traextor compose dirs
+ ansible.builtin.file:
+ state: directory
+ dest: '{{ traextor_base }}/{{ item.path }}'
+ with_filetree: '../templates'
+ when: item.state == 'directory'
+
+- 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"