ansible/roles/docker/tasks/glance.yml

27 lines
626 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: '0644'
- 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
- name: deploy glances stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/glance
files:
- compose.yml