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/CAHHcNofZkyG7y-oQ5ibFC0ti1N_7Q%3DpaDgb6Pijp%2BuiUD2qLhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to