i'm trying to copy a bunch of ssl ca certs into a directory.  this works
file with the copy module and if it sees a new one it runs a handler to
rehash all the certs in the directory to create *.0 symlinks to each of the
certs

however, if an additional cert gets put in there by someone and they don't
rehash the directory, now there's a cert without a hash

i can count the *.crt's and the *.0's using the find module, which puts a
'matched' number into the ansible registered variable from the find, but i
can't figure a way to run the handler to rehash the directory if the counts
aren't equal

i found some other examples where people just run handlers based on
command: /bin/true with changed_when: true, but i don't want to run it all
the time, only if the counts aren't equal

any suggestions?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CABOsP2NsqXebiN%3D2YQn3kACveYcpvKkOs4r3C2pWoRYxzAsgRA%40mail.gmail.com.

Reply via email to