You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running ocp_deprovision for OCP in AWS, the following error occurred:
TASK [ibm.mas_devops.ocp_deprovision : ipi : Fail if required parameters are not provided (AWS)] ****************************
fatal: [localhost]: FAILED! =>
msg: |-
The conditional check 'ipi_platform == "aws"' failed. The error was: error while evaluating conditional (ipi_platform == "aws"): 'ipi_platform' is undefined. 'ipi_platform' is undefined
The error appears to be in '/opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/ocp_deprovision/tasks/providers/ipi.yml': line 17, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# that seems rather redundant at present.
- name: "ipi : Fail if required parameters are not provided (AWS)"
^ here
This one looks easy to fix. It seems that there is a value started
---
with a quote, and the YAML parser is expecting to see the line ended
with the same kind of quote. For instance:
when: "ok" in result.stdout
Could be written as:
when: '"ok" in result.stdout'
Or equivalently:
when: "'ok' in result.stdout"
NO MORE HOSTS LEFT **********************************************************************************************************
PLAY RECAP ******************************************************************************************************************
localhost : ok=6 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
[ibmmas/cli:7.11.1]mascli$
Adding ipi_platform: "{{ lookup('env', 'IPI_PLATFORM') }}" to /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/ocp_deprovision/defaults/main.yml resolved the issue.
The text was updated successfully, but these errors were encountered:
When running
ocp_deprovision
for OCP in AWS, the following error occurred:Adding
ipi_platform: "{{ lookup('env', 'IPI_PLATFORM') }}"
to/opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/ocp_deprovision/defaults/main.yml
resolved the issue.The text was updated successfully, but these errors were encountered: