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
22 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.