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

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/ env_demo.yml

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

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
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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer