UNSOLVED

avafox79

updated

6 years ago

A

avafox79

1 Message

0

612

July 15th, 2020 03:00

Ansible_Unity - Task Failure, Add Initiators to Host.

Hi

When running basic playbook tests like the one below I keep getting the following error.

fatal: [10.254.212.69]: FAILED! => {"changed": false, "msg": "50:01:43:80:24:26:02:4a - Invalid initiator passed."}
::02:4a - Invalid initiator passed."}

- name: Add Initiators to Host.
dellemc_unity_host:
unispherehost: "{ {unispherehost}}"
username: "{ {username}}"
password: "{ {password}}"
verifycert: "{ {verifycert}}"
host_name: "TEST1"
initiators:
- "50:01:43:80:24:26:02:4a"
- "50:01:43:80:24:25:a1:6e"
initiator_state: "present-in-host"
state: "present"

 

Any help would be great.

 

Thanks

  • bmcfeeters

    1 Rookie

    •

    72 Posts

    562

    0

    Posted July 15th, 2020 05:00

    Hi there avafox79,

    I believe that the Unity host module is expecting to get both the node and port WWNs together as showed in the included example...


    - name: Add Initiators to Host.
    dellemc_unity_host:
    unispherehost: "{ {unispherehost}}"
    username: "{ {username}}"
    password: "{ {password}}"
    verifycert: "{ {verifycert}}"
    host_name: "ansible-test-host-2"
    initiators:
    - "20:00:00:90:FA:13:81:8C:10:00:00:90:FA:13:81:8C"
    initiator_state: "present-in-host"
    state: "present"