Qubinode / qubinode-installer

An easy to set up OpenShift development kit powered by Red Hat Ansible.
https://qubinode-installer.readthedocs.io/en/latest/
GNU General Public License v3.0
86 stars 26 forks source link

The conditional check 'vm_recreate or vm_teardown' failed. #8

Closed tosin2013 closed 5 years ago

tosin2013 commented 5 years ago

TASK [ansible-role-rhel7-kvm-cloud-init : Destroy vm] *** Thursday 08 August 2019 01:15:00 -0400 (0:00:00.437) 0:00:00.738 * fatal: [localhost]: FAILED! => {}

MSG:

The conditional check 'vm_recreate or vm_teardown' failed. The error was: error while evaluating conditional (vm_recreate or vm_teardown): 'dict object' has no attribute 'vm_teardown'

The error appears to be in '/home/tosin/openshift-home-lab/playbooks/roles/ansible-role-rhel7-kvm-cloud-init/tasks/teardown-vm.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


...ignoring

TASK [ansible-role-rhel7-kvm-cloud-init : Undefine vm] **** Thursday 08 August 2019 01:15:00 -0400 (0:00:00.028) 0:00:00.767 *** fatal: [localhost]: FAILED! => {}

MSG:

The conditional check 'vm_recreate or vm_teardown' failed. The error was: error while evaluating conditional (vm_recreate or vm_teardown): 'dict object' has no attribute 'vm_teardown'

The error appears to be in '/home/tosin/openshift-home-lab/playbooks/roles/ansible-role-rhel7-kvm-cloud-init/tasks/teardown-vm.yml': line 9, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

PLAY RECAP **** localhost : ok=5 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=1

tosin2013 commented 5 years ago

Fixed by requiring Ansible 2.7

tosin2013 commented 5 years ago

the fix is to edit the file with the playbooks/vars/all.yml file with the information below instances:

tosin2013 commented 5 years ago

fixed https://github.com/tosin2013/openshift-home-lab/commit/aa6bf851f6d3468c459a35f1a8121e6b5d8c82fa