Re: ansible playbooks git module usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So, further investigation shows that the ansible 2.1 git module is just
broken here. ;) 

I added a reproducer to:

https://github.com/ansible/ansible-modules-core/issues/1509

basically it shows changed all the time, even when it should not. 

There's a hacky workaround there: 

  register: git_result
  changed_when: "git_result.after|default('after') != git_result.before|default('before')"

Of course this needs fixing, but even so, the underlying question still
remains (because even after this is fixed, it will show changes when
there are changes in the git repos unless we pin to a SHA1). 

kevin

Attachment: pgpYOprfdkKMi.pgp
Description: OpenPGP digital signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux