Order is now: stage → pull rebase → commit → push. Staging first means the working tree is clean bef

This commit is contained in:
2026-03-14 17:04:21 -07:00
parent 17cebecd31
commit af86c85638

View File

@@ -83,6 +83,13 @@
delegate_to: localhost delegate_to: localhost
changed_when: false changed_when: false
- name: Git | Stage backup files
ansible.builtin.shell: |
cd {{ pve_config_git_repo_dir }}
git add {{ pve_config_git_base_path }}/
delegate_to: localhost
when: git_status.stdout != ""
- name: Git | Pull latest before committing - name: Git | Pull latest before committing
ansible.builtin.shell: | ansible.builtin.shell: |
cd {{ pve_config_git_repo_dir }} cd {{ pve_config_git_repo_dir }}
@@ -91,13 +98,6 @@
when: git_status.stdout != "" when: git_status.stdout != ""
changed_when: false changed_when: false
- name: Git | Stage backup files
ansible.builtin.shell: |
cd {{ pve_config_git_repo_dir }}
git add {{ pve_config_git_base_path }}/
delegate_to: localhost
when: git_status.stdout != ""
- name: Git | Commit backup - name: Git | Commit backup
ansible.builtin.shell: | ansible.builtin.shell: |
cd {{ pve_config_git_repo_dir }} cd {{ pve_config_git_repo_dir }}