Another use-case would be when performing an "rvm get", which would upgrade, (and possibly change) the rvm binary, and we would need to do some reloading stuff if that happens.
On 24 August 2014 20:48, Akos Vandra <[email protected]> wrote: > Hello! > > Is it possible to do something similar to the creates argument, but > one that would affect the changed attribute? > > - shell: ./configure > register: last_command > args: > updates: Makefile > > Would return changed=true when the configure script changed the > Makefile, and changed=false when it generates the same Makefile. > > This will enable us to do > > - shell: make all > when: last_command | changed > > Currently I don't think there is a way other than fetching the md5sum > of the Makefile before and after then configure command, and comparing > them, but that seems clumsy. > > Regards, > Akos Vandra -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHHcNocxLP%2B06ShcKN4EkLjZbh9rxFzFChT43cm-%2B7QiQ0W8wQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
