To be honest, I've never even seen that syntax used before -- redirection of input/output obviously yes...
It's a sign you can be writing systems management software for well over a decade and not learn all the bash things. Basically right now it takes either a string - for a very deprecated use case we don't really document, or a filename or directory name. A quick way to solve what you want to do, BTW, is just put both in the same directory -i directoryname will load all files int he one directory and then use "--limit groupname" to limit ansible to just what you want to select. (Be careful to not forget the limit!) That's the way pretty much everyone approaches that, anyway :) Another option would be use "-i directoryname" and just be particular about what your "hosts:" stanza would address. I'm open to make this loading be more generic provided we be careful to not break any current possibilities, but am not entirely sure what is involved. On Fri, Sep 12, 2014 at 6:12 PM, Paul Smith <[email protected]> wrote: > Does Ansible not support bash's process substitution > <http://tldp.org/LDP/abs/html/process-sub.html>? > > My project maintains separate inventory files, and there are some > playbooks that need hosts from certain combinations of them. Instead of > having pre-concatenated files that could go out of sync, I'd like to do > something like: > > $ ansible-playbook -i <(cat inventorya inventoryb) playbook.yml > > I get this error though when I try it: > > ERROR: provided hosts list is empty > > I haven't looked at the Ansible source, but this may be because process > substitution uses an fifo under the hood, and Ansible may be strictly > looking for a file, but this is just wild speculation. > > (Ansible 1.7.1) > > -Paul > > -- > 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/8c342e6e-0605-4f8a-be47-bbd8491504bf%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/8c342e6e-0605-4f8a-be47-bbd8491504bf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgxT7Z8SEand01SQ6nrJnLSHVP__eg0_cr_2MPfBzF-vXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
