Not sure whether I am doing something wrong. Using the following playbook
- hosts: myhosts
tasks:
- name: Update git repo der Anwendung
git:
dest=/my/webapp
repo=repo@host:repos/my-webapp
recursive=no
update=yes
accept_hostkey=yes
sudo: yes
The git to pull the changes the git module always says there is a change:
changed: [myhost] => {“after”: “61b54a57dca2bb263a795541fd3cd9a8090aac45”, “before”: “61b54a57dca2bb263a795541fd3cd9a8090aac45”, “changed”: true, “msg”: “Local modifications exist”}
while I am quite sure that no local changes exist. Can someone reproduce it?
Thanks
Yeah i see the same thing. if you set it to a specific commit or
release it won't trigger,
without that it seems like it always 'git pull's to ensure you have an
up to date copy.
Can’t say I parse the “won’t trigger” part.
I believe a bug was filed for it returning changed=true in some cases where there was not a change.
Sorry, "trigger" in this case means notify: clauses always fire if
you're doing a git pull
without a specific commit/tag (in my experience at least).
Returns changed: True.
yes, this is probably true, I believe the existing ticket already tracks this.
Thanks!