# Ansible fails with deployment\_type assertion

**URL:** <https://forum.ansible.com/t/ansible-fails-with-deployment-type-assertion/19930>\
**Category:** Ansible Project\
**Created:** [December 3, 2015, 5:05pm UTC](https://forum.ansible.com/t/ansible-fails-with-deployment-type-assertion/19930 "2015-12-03T17:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suryaveer\_Chauhan](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Suryaveer\_Chauhan](https://forum.ansible.com/u/Suryaveer_Chauhan)\
**Post date:** [December 3, 2015, 5:05pm UTC](https://forum.ansible.com/t/ansible-fails-with-deployment-type-assertion/19930/1 "2015-12-03T17:05:00Z")

</div>

Hi All,

I am trying to install OpenShift Origin V3 (following [this](https://blog.openshift.com/setting-openshift-3-openstack/)) using ansible and it fails with following error:

TASK: [openshift\_facts | Ensure PyYaml is installed] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [192.168.144.132] =\> (item=PyYAML)

TASK: [openshift\_facts | Gather Cluster facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

ok: [192.168.144.132]

TASK: [openshift\_repos | assert] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [192.168.144.132] =\> {“assertion”: “openshift.common.deployment\_type in known\_openshift\_deployment\_types”, “evaluated\_to”: false, “failed”: true}

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

to retry, use: --limit @/home/suryaveer/config.retry

192.168.144.132 : ok=20 changed=2 unreachable=0 failed=1  
localhost : ok=8 changed=0 unreachable=0 failed=0

**_Below is my ansible host file:_**

[OSEv3:children"]  
masters  
nodes

[OSEv3:vars]  
ansible\_ssh\_user=centos  
ansible\_sudo=true  
#ansible\_ssh\_user=root

product\_type=openshift  
**deployment\_type=origin**

[masters]  
192.168.144.132 openshift\_public\_hostname=master openshift\_ip=10.0.1.163 openshift\_public\_ip=192.168.144.132

[nodes]  
192.168.144.128 openshift\_public\_hostname=node1 openshift\_ip=10.0.1.164 openshift\_public\_ip=192.168.144.128 openshift\_node\_labels=“{‘region’: ‘primary’, ‘zone’: ‘east’}”  
192.168.144.129 openshift\_public\_hostname=node2 openshift\_ip=10.0.1.165 openshift\_public\_ip=192.168.144.129 openshift\_node\_labels=“{‘region’: ‘primary’, ‘zone’: ‘west’}”

I found one post on github for similar error but was inconclusive.

Thanks
