Skip to content

Commit 4eaec85

Browse files
author
Johan Wärlander
committed
Add force flag when cloning project
By default, since 1.9, Ansible no longer overwrites modified files in the working tree when updating a cloned git repository. To maintain consistent, robust deployment behavior, set the 'force' flag to True to re-enable overwriting the working tree.
1 parent 067bdfd commit 4eaec85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/project.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
version: "{{ git_ref }}"
66
dest: "{{ project_path }}"
77
accept_hostkey: True
8+
force: True
89
remote_user: "{{ deployer }}"
910

1011

0 commit comments

Comments
 (0)