generate_menus_custom.yml 464 B

12345678910111213141516
  1. ---
  2. - name: Generate directories
  3. ansible.builtin.file:
  4. path: "{{ item }}"
  5. state: directory
  6. with_items:
  7. - "{{ custom_templates_dir }}"
  8. - "{{ netbootxyz_root }}/custom"
  9. - name: Generate custom user menu templates
  10. ansible.builtin.template:
  11. src: "{{ item.src }}"
  12. dest: "{{ netbootxyz_root }}/custom/{{ item.path | regex_replace('.j2', '') }}"
  13. with_community.general.filetree: "{{ custom_templates_dir }}"
  14. when: item.state == "file"