[ansible-project] Using pre_tasks to install a role right before using it on a managed node?

2014-07-09 Thread Jonathan Rowlands
I don't know if this is a normal use-case but I am using packer.io and the local ansible provisioner to build docker images. I wanted to use a pre_task to actually install the role and then immediately use the role on a managed node. The problem is that *I think* there is a sanity check that

Re: [ansible-project] Using pre_tasks to install a role right before using it on a managed node?

2014-07-09 Thread Brian Coca
not a sanity check, the playbook gets 'compiled' before running.​ -- 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 ansible-project+unsubscr...@googlegroups.com.

Re: [ansible-project] Using pre_tasks to install a role right before using it on a managed node?

2014-07-09 Thread Michael DeHaan
yeah I can't guarantee this will work even if it happened to work now. A better idea might be to have a requirements file and run ansible-galaxy (the CLI) against the requirements_file to slurp it all in. See ansible-galaxy --help for details. If you have private roles, I recommend