dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
336 stars 163 forks source link

Error: boot_to_network_iso() missing 1 required positional argument: 'expose_duration' #78

Closed Unalloyedcube closed 4 years ago

Unalloyedcube commented 5 years ago

I am facing a similar issue as https://github.com/dell/dellemc-openmanage-ansible-modules/issues/75 and have verified that the correct OMSDK is installed from the devel branch.

main.yml file

---
 - connection: local
  gather_facts: false
  hosts: server
  name: Booting to Network Operating System image
  tasks:
    - name: "Booting to Network Operating System image"
      dellemc_boot_to_network_iso:
        idrac_ip: "{{ ansible_host }}"
        idrac_password: "password"
        idrac_user: "root"
        share_name: "\\\\151.100.0.0\\iso"
        iso_image: "VMware-VMvisor-Installer-6.5.0.iso"
        share_user: "user"
        share_password: "{{ spass }}"

inventory.ini file

[server]
server1 ansible_host=172.19.0.3            

[server:vars]
spass=secretpass

error:

root@120dfd016535:/ansible# ansible-playbook -i inventory.ini main.yml -e 'ansible_python_interpreter=/usr/bin/python3'

PLAY [Booting to Network Operating System image] 
*********************************************************************

TASK [Booting to Network Operating System image] 
*********************************************************************
fatal: [server1]: FAILED! => {"changed": false, "msg": "Error: boot_to_network_iso() missing 1 required positional argument: 'expose_duration'"}

PLAY RECAP 

***********************************************************************************************
server1 : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0 

ansible version:

root@120dfd016535:/ansible# ansible --version
ansible 2.8.1
  config file = /ansible/ansible.cfg
  configured module search path = [u'/library']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.12 (default, Oct  8 2019, 14:14:10) [GCC 5.4.0 20160609]
Unalloyedcube commented 4 years ago

Ran a pip install omsdk which resolved the issue.