Order is now: stage → pull rebase → commit → push. Staging first means the working tree is clean bef
This commit is contained in:
@@ -83,6 +83,13 @@
|
||||
delegate_to: localhost
|
||||
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
|
||||
ansible.builtin.shell: |
|
||||
cd {{ pve_config_git_repo_dir }}
|
||||
@@ -91,13 +98,6 @@
|
||||
when: git_status.stdout != ""
|
||||
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
|
||||
ansible.builtin.shell: |
|
||||
cd {{ pve_config_git_repo_dir }}
|
||||
|
||||
Reference in New Issue
Block a user