- name: Render Argo CD Application YAML to a variable ansible.builtin.set_fact: argo_app_manifest: "{{ lookup('ansible.builtin.template', '../templates/argo_app.yaml.j2') }}" - name: Apply Argo CD Application to Kubernetes using k8s module kubernetes.core.k8s: state: present definition: "{{ argo_app_manifest }}" register: k8s_apply_result delegate_to: localhost