Ansible Error ERROR vars files is not a valid attribute for a PlaybookInclude

0 votes

I am trying to execute my playbook

ansible-playbook openshift-ansible/playbooks/example/config.yml

And I end up with the following error:

ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude

Why is that so?

Jun 3, 2019 in Ansible by Vish
4,789 views

1 answer to this question.

0 votes

vars_files is not supported for included playbooks as of Ansible 2.3

You may opt to use extra variables file:

ansible-playbook -e @secrets/example.com.yml env_demo.yml

Or use group variables file for all group – place your encrypted file into ./group_vars/all/example.com.yml.

answered Jun 3, 2019 by Tara

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Error saying "ERROR: ec2_vpc_subnet is not a legal parameter of an Ansible Play"

ec2_vpc_subnet is support from Ansible version 2.0 and ...READ MORE

answered Feb 8, 2019 in Ansible by Dee
1,019 views
0 votes
1 answer
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,940 views
+2 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP