During the advanced installation, there is this error message ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude

Solution In Progress - Updated -

Issue

  • After I have configured Ansible (file /etc/ansible/hosts), I run the following playbook and there is an error message:
$ ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude

The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/config.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- include: ../../common/openshift-cluster/config.yml
  ^ here






Here it is my ansible file:
# Create an OSEv3 group that contains the masters, nodes, and etcd groups
[OSEv3:children]
masters
nodes
etcd
lb

# Set variables common for all OSEv3 hosts
[OSEv3:vars]

# SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=user

# If ansible_ssh_user is not root, ansible_sudo must be set to true
ansible_sudo=true
deployment_type=openshift-enterprise

osm_cluster_network_cidr=x.x.0.0/16
osm_default_subdomain=example.com


openshift_node_kubelet_args={'minimum-container-ttl-duration': ['10s'],'maximum-dead-containers-per-container': ['2'],'maximum-dead-containers': ['10'],'image-gc-high-threshold': ['90'],'image-gc-low-threshold': ['80']}

# uncomment the following to enable htpasswd authentication; defaultsto DenyAllPasswordIdentityProvider
openshift_master_identity_providers=[{'name': 'htpasswd_auth','login': 'true', 'challenge': 'true', 'kind':'HTPasswdPasswordIdentityProvider', 'filename':'/etc/origin/htpasswd'}]

# Native high availability cluster method with optional load balancer.
# # If no lb group is defined, the installer assumes that a load balancer has
# # been preconfigured. For installation the value of
# # openshift_master_cluster_hostname must resolve to the load balancer
# # or to one or all of the masters defined in the inventory if no load
# # balancer is present.
openshift_master_cluster_method=native
openshift_master_cluster_hostname=vm-openshift-cluster.example.com
openshift_master_cluster_public_hostname=vm-openshift-cluster.example.com


# override the default controller lease ttl
#osm_controller_lease_ttl=30

# host group for masters
[masters]
host3.internal.com openshift_public_hostname=master1.example.com
host4.internal.com openshift_public_hostname=master2.example.com

# host group for etcd
[etcd]
host3.internal.com openshift_public_hostname=master1.example.com
host4.internal.com openshift_public_hostname=master2.example.com

# host group for lb
[lb]
host2.internal.com openshift_public_hostname=loadbalancer.example.com

# host group for nodes, includes region info
[nodes]
host3.internal.com openshift_node_labels="{'region': 'primary', 'zone': 'north'}" openshift_public_hostname=master1.example.com
host4.internal.com openshift_node_labels="{'region': 'primary', 'zone': 'south'}" openshift_public_hostname=master2.example.com

Environment

  • Openshift Enterprise 3.1.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content