Problem with the RedHat's VDO module

Morning,

I am seeing this error and wonder if someone have seen a similar error
with this module or would know what could be the problem. These are
the particulars of this problem:

[william@ansible ~]$ rpm -qa | grep ansible
ansible-2.7.8-1.el7.noarch
[william@ansible ~]$

Task:

    - name: Intialize VDO storage
      vdo: name={{ansible_hostname}} state=present
device=/dev/disk/by-id/scsi-360022190be1e45001dddfc0413294b89-part6
logicalsize=30T slabsize=32G blockmapcachesize=25G indexmode=sparse
indexmem=1
      when:
        - ansible_distribution_major_version == "7" or
ansible_distribution_major_version == "8"
        - "'srv02' in inventory_hostname"

When I attempt to run the above task, I am getting the error below:

fatal: [srv02.eng.example.com]: FAILED! => {
    "changed": false,
    "module_stderr": "Shared connection to srv02.eng.example.com closed.\r\n",
    "module_stdout": "Traceback (most recent call last):\r\n File
\"/root/.ansible/tmp/ansible-tmp-1552994022.93-248012118717146/AnsiballZ_vdo.py\",
line 113, in <module>\r\n _ansiballz_main()\r\n File
\"/root/.ansible/tmp/ansible-tmp-1552994022.93-248012118717146/AnsiballZ_vdo.py\",
line 105, in _ansiballz_main\r\n invoke_module(zipped_mod,
temp_path, ANSIBALLZ_PARAMS)\r\n File
\"/root/.ansible/tmp/ansible-tmp-1552994022.93-248012118717146/AnsiballZ_vdo.py\",
line 48, in invoke_module\r\n imp.load_module('__main__', mod,
module, MOD_DESC)\r\n File
\"/tmp/ansible_vdo_payload___zONc/__main__.py\", line 873, in
<module>\r\n File \"/tmp/ansible_vdo_payload___zONc/__main__.py\",
line 869, in main\r\n File
\"/tmp/ansible_vdo_payload___zONc/__main__.py\", line 611, in
run_module\r\nTypeError: string indices must be integers, not
str\r\n",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}
to retry, use: --limit @/etc/ansible/site.retry

What could be tripping this module? I have counter checked that
modules parameters are correct from documentations, so not sure where
I am passing string instead of integer.

Regards,
William