Your playbook appears to be manually typed in as I would expect to see tasks starting with a "-".
Can you please be sure to copy/paste the actual playbook. I say this because even the first task is not correctly formatted, otherwise I would suggest this error with respect to the second, and also know we have error detection to make sure "tasks" is a list and suggest changes appropriately. On Thu, Jul 24, 2014 at 2:46 AM, Matt Clarkson <[email protected]> wrote: > Hi, > > I'm looking for a way to quickly render/debug template files populated > with variables from ec2. > > My strategy is to write a playbook that discovers that facts then runs the > template module locally. > > Here is my current playbook: > > --- > > - name: Gather ec2 facts > > hosts: all > > tasks: > > local_action: ec2_facts > > - name: atemplate > > hosts: localhost > > tasks: > > action: template src=~/templates/raw/mako_PROD.properties.j2 > dest=~/templates/out > > > The playbook runs completely but the atemplate command is never run. > Here's the output (my localhost is part of ec2 inventory): > > PLAY [Gather ec2 facts] > ******************************************************* > > > GATHERING FACTS > *************************************************************** > > <REDACTED: lots of ec2hosts>> > > ok: [localhost] > > > PLAY [atemplate] > ************************************************************** > > > GATHERING FACTS > *************************************************************** > > ok: [localhost] > > > PLAY RECAP > ******************************************************************** > > <REDACTED: lots of ec2hosts>> > > localhost : ok=2 changed=0 unreachable=0 > failed=0 > > > Can I get some tips on what's wrong? Or if there's a better way to > achieve my objective would like to hear that too.... Thanks! > > MTC > > -- > 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/4a7a14ef-3ca1-49c7-bcb1-6c9a424f8a69%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/4a7a14ef-3ca1-49c7-bcb1-6c9a424f8a69%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%2BnsWgz%2BRAE4ZpCSMMb8mgfURk260uyNvVj0ShLGjkOowyZ%3Dew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
