ansible-role-bluecloud-webodv/tasks/main.yml

34 lines
1.1 KiB
YAML

---
- name: Create the compose directory
run_once: true
when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool
tags: ['bc_webodv']
block:
- name: Create the compose directory
ansible.builtin.file:
dest: "{{ bluecloud_webodv_compose_dir }}"
state: directory
owner: root
group: root
mode: "0700"
- name: Manage the installation of the OpenASFA configuration of the swarm service
when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool
tags: ['bc_webodv']
run_once: true
block:
- name: Install the docker compose file of the WebODV service
ansible.builtin.template:
src: docker-compose-webodv.yml.j2
dest: "{{ bluecloud_webodv_compose_dir }}/docker-open-asfa-stack.yml"
owner: root
group: root
mode: "0400"
- name: Start the WebODV stack
community.docker.docker_stack:
name: "{{ bluecloud_webodv_docker_stack_name }}"
state: present
compose:
- "{{ bluecloud_webodv_compose_dir }}/docker-open-asfa-stack.yml"