Apologies for what may be a silly question.

Within a role, I'd like to run a verification command on some files from the .../files/ directory before installing them. I can see how to use a 'local_action' and the command or shell module for this. But I can't see how to give the verification command an appropriate path to the file to process. The best I can come up with is a solution based on playbook_dir:

  {{ playbook_dir }}/roles/foobar-config/files/{{ item }}

But this is brittle, because it includes the role name which might change. Is there a better way to do this?

Jon.

--
Jon Warbrick
Information Systems Manager, University of Cambridge Information Services

--
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/alpine.DEB.2.02.1407011644490.22659%40mnementh.csi.cam.ac.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to