---
- 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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4a7a14ef-3ca1-49c7-bcb1-6c9a424f8a69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.