ansible/roles/docker/tasks/glance.yml
2024-09-22 08:16:55 -06:00

26 lines
592 B
YAML

- name: make glance directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/glance
- name: Template out the compose file
ansible.builtin.template:
src: glance-compose.yml.j2
dest: /opt/stacks/glance/compose.yml
owner: root
mode: 644
- name: Template out the config file
ansible.builtin.template:
src: glance.yml.j2
dest: /opt/stacks/glance/glance.yml
owner: root
mode: 644
- name: deploy glances stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/glance
files:
- compose.yml