Issue with Mongo Role for Mongo Installation with ansible=12.0.0 and ansible-core=2.19.2
MAS CLI version
latest
CLI function used
install
What happened?
[WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' ansible-playbook [core 2.19.2] config file = None "msg": "All assertions passed" }
TASK [ibm.mas_devops.mongodb : Fail if mongodb_provider is not provided] ******* task path: /usr/share/ansible/collections/ansible_collections/ibm/mas_devops/roles/mongodb/tasks/main.yml:4 [ERROR]: Task failed: The filter plugin 'ansible.builtin.default' failed: The 'boolean' argument must be of type 'bool', not 'str'.
Task failed. Origin: /usr/share/ansible/collections/ansible_collections/ibm/mas_devops/roles/mongodb/tasks/main.yml:4:3
2 # 1. Check for undefined properties that do not have a default 3 # ----------------------------------------------------------------------------- 4 - name: "Fail if mongodb_provider is not provided" ^ column 3
<<< caused by >>>
The filter plugin 'ansible.builtin.default' failed. Origin: /usr/share/ansible/collections/ansible_collections/ibm/mas_devops/roles/mongodb/tasks/main.yml:6:11
4 - name: "Fail if mongodb_provider is not provided" 5 assert: 6 that: mongodb_provider is defined and mongodb_provider != "" ^ column 11
<<< caused by >>>
The 'boolean' argument must be of type 'bool', not 'str'.
Origin:
True
fatal: [localhost]: FAILED! => { "changed": false, "msg": "Task failed: The filter plugin 'ansible.builtin.default' failed: The 'boolean' argument must be of type 'bool', not 'str'." }
PLAY RECAP ********************************************************************* localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
total 0 cat: '/masinstall/masconfig/masSERVER_BUNDLE_CONFIG_FILE=mas_server_bundle/*.yml': No such file or directory Elapsed time: 8 seconds
Relevant log output
This is with linux having ansible installed and not using the mascli container