Strip whitespace from the namespace list in Ansible installer
In the off chance that someone puts in additional whitespace
in the "namespace" list in the inventory file for the Ansible
installer, said whitespace is now stripped out.
Issue:
target_namespace: !unsafe "{{.TargetNamespace}}"
operator_namespace: !unsafe "{{.OperatorNamespace}}"
target_ns_script: "{{ lookup('template', 'add-targeted-namespace.sh.j2') }}"
- with_items: "{{ namespace.split(',') }}"
+ with_items: "{{ namespace.split(',') | map('trim') | list }}"
when: namespace != ''
tags:
- install
