From 7cc8fbbccb9972ae313e8b07476a92ceb52ef64c Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Fri, 22 Sep 2023 12:10:02 +0200 Subject: [PATCH] fix: Clean untracked files in git repo through git_acp module --- .../roles/workloadcluster/tasks/clusterapi.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/workloadcluster/tasks/clusterapi.yml b/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/workloadcluster/tasks/clusterapi.yml index 5e10436..c0f96c6 100644 --- a/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/workloadcluster/tasks/clusterapi.yml +++ b/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/workloadcluster/tasks/clusterapi.yml @@ -186,13 +186,13 @@ prefix: "{{ vapp['guestinfo.prefixlength'] }}" gateway: "{{ vapp['guestinfo.gateway'] }}" -- name: Remove working files - ansible.builtin.file: - path: "{{ item }}" - state: absent - loop: "{{ query('ansible.builtin.fileglob', capi_clustermanifest.path ~ '/*.yaml') }}" - loop_control: - label: "{{ item | basename }}" +# - name: Remove working files +# ansible.builtin.file: +# path: "{{ item }}" +# state: absent +# loop: "{{ query('ansible.builtin.fileglob', capi_clustermanifest.path ~ '/*.yaml') }}" +# loop_control: +# label: "{{ item | basename }}" - name: Push git repository lvrfrc87.git_acp.git_acp: @@ -201,6 +201,7 @@ comment: "Upload manifests" add: - ./manifests + clean: untracked url: https://administrator:{{ vapp['metacluster.password'] | urlencode }}@git.{{ vapp['metacluster.fqdn'] }}/mc/GitOps.ClusterAPI.git environment: GIT_AUTHOR_NAME: administrator