ansible/roles/docker/tasks/glance.yml

27 lines
626 B
YAML
Raw Normal View History

2024-09-22 16:16:55 +02:00
- name: make glance directories
ansible.builtin.file:
path: "{{ item }}"
2024-09-22 16:16:55 +02:00
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: '0644'
2024-09-22 16:16:55 +02:00
- name: Template out the config file
ansible.builtin.template:
src: glance.yml.j2
dest: /opt/stacks/glance/glance.yml
owner: root
mode: '0644'
notify: restart glance
2024-09-22 16:16:55 +02:00
- name: deploy glances stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/glance
files:
- compose.yml