- 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