diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-03-22 11:13:20 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-03-22 11:13:20 -0700 |
| commit | e5eba51991a0640c6e5d1da0bd78cdbc9d4513f2 (patch) | |
| tree | 544e8f8537bcf6198206f62e10c1234eea589200 /playbooks/roles/traextor/tasks | |
| parent | 9b3532e762465b7f4f81459cfc96ed42cd5134d0 (diff) | |
| download | infra-e5eba51991a0640c6e5d1da0bd78cdbc9d4513f2.tar.gz infra-e5eba51991a0640c6e5d1da0bd78cdbc9d4513f2.zip | |
deploy kanidm
Diffstat (limited to 'playbooks/roles/traextor/tasks')
| -rw-r--r-- | playbooks/roles/traextor/tasks/main.yml | 19 |
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" |
