--- - name: Debug. ansible.builtin.debug: msg: "Using {{ config.build_dir }}" tags: - debug - name: Ensure build directory exists. ansible.builtin.file: path: "{{ config.build_dir }}" state: "directory" mode: '0755' tags: - build - name: Copy Build Files. ansible.builtin.copy: src: "{{ item.src }}" dest: "{{ config.build_dir }}/{{ item.dest }}" mode: '0600' with_items: - src: "{{ config.paths.definitions_path }}" dest: "Definitions.md" - src: "{{ config.paths.head_path }}" dest: "head.tex" tags: - build - name: Build Templated Files ansible.builtin.template: src: "{{ item.src }}" dest: "{{ config.build_dir }}/{{ item.dest }}" mode: '0600' with_items: - src: "{{ config.paths.report_path }}" dest: "Report.md" - src: "{{ config.paths.footer_path }}" dest: "footer.tex" tags: - build