add a git pull before the commit/push to handle this gracefully when multiple nodes run sequentially
This commit is contained in:
@@ -83,6 +83,14 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Git | Pull latest before committing
|
||||||
|
ansible.builtin.shell: |
|
||||||
|
cd {{ pve_config_git_repo_dir }}
|
||||||
|
git pull origin {{ pve_config_git_branch }} --rebase
|
||||||
|
delegate_to: localhost
|
||||||
|
when: git_status.stdout != ""
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Git | Stage backup files
|
- name: Git | Stage backup files
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
cd {{ pve_config_git_repo_dir }}
|
cd {{ pve_config_git_repo_dir }}
|
||||||
|
|||||||
Reference in New Issue
Block a user