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.