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 in Ansible by Vish
91 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 by Tara

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
+13 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,380 points
124 views
0 votes
1 answer