---
# Generate Homepage services.yaml from template

- name: Ensure Homepage config directory exists
  ansible.builtin.file:
    path: "{{ cml_deploy_path }}/configs/homepage"
    state: directory
    mode: "0755"

- name: Generate Homepage services.yaml
  ansible.builtin.template:
    src: services.yaml.j2
    dest: "{{ cml_deploy_path }}/configs/homepage/services.yaml"
    mode: "0644"
