Forum Discussion

ADC18's avatar
Icon for Nimbostratus rankNimbostratus
Apr 28, 2020

bigip_software_install ansible command is erroring out -AttributeError: 'dict' object has no attribute 'status'

I am trying to install this IOS image to HD1.2 directory. Image is already uploaded to /shared/images.


<localhost> EXEC /bin/sh -c 'rm -f -r /home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/ > /dev/null 2>&1 && sleep 0'

The full traceback is:

Traceback (most recent call last):

 File "/home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/", line 102, in <module>


 File "/home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/", line 94, in _ansiballz_main

  invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)

 File "/home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/", line 40, in invoke_module

  runpy.run_module(mod_name='ansible_collections.f5networks.f5_modules.plugins.modules.bigip_software_install', init_globals=None, run_name='__main__', alter_sys=True)

 File "/usr/lib64/python2.7/", line 176, in run_module

  fname, loader, pkg_name)

 File "/usr/lib64/python2.7/", line 82, in _run_module_code

  mod_name, mod_fname, mod_loader, pkg_name)

 File "/usr/lib64/python2.7/", line 72, in _run_code

  exec code in run_globals

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/", line 549, in <module>

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/", line 542, in main

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/", line 297, in exec_module

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/", line 315, in present

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/", line 342, in exists

AttributeError: 'dict' object has no attribute 'status'


fatal: [ -> localhost]: FAILED! => {


Yaml file

  - name: Ensure an existing image is installed in specified volume


    image: BIGIP-

    volume: HD1.2

    state: installed

    provider: "{{ provider }}"

   delegate_to: localhost


Not sure what is this error - AttributeError: 'dict' object has no attribute 'status'

No RepliesBe the first to reply