I have a playbook that runs 2 plays and then includes a playbook from
another project. When calling the external playbook, it attempts to pass
along a couple of variables so that the external playbook has the proper
context. The playbook looks like this:
- name: Launch any new EC2 instances
hosts: local
gather_facts: false
roles:
- { role: ec2, server_type: web, server_type_abbrev: web, when: "'web'
in server_types" }
- name: Configure new EC2 instances
hosts: ec2_instances
become: yes
become_method: sudo
gather_facts: true
roles:
- common/server-config/essentials
- common/server-config/github
- name: Deploy the Project
include: "../../project/ansible/aws.yml target_env={{ env }}
aws_region={{ aws_region }}"
If I remove the `aws_region` variable from the playbook include, all is
well. With it in, though:
[WARNING]: non fatal error while trying to template play variables: Failed
to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: Failed to template {{ aws_region }}: Failed to
template {{ aws_region }}: recursive loop detected in template string: {{
aws_region }}
What am I doing wrong here?
Thanks.
--
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/f71f69f9-70e9-4709-bb9d-3e9bbc75e1fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.