You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute the adhoc-script which calls the role vm_snapshots. The gathering yml is main.yml in tasks from this role.
Variables are defined in defaults/main.yml from this role.
---
- name: Clear all VM Snapshots
hosts: localhost
roles:
- role: vm_snapshots
...
TASK [vm_snapshots : Gather information of specified snapshots] ********************************************************************
task path: /home/ansible/server/roles/vm_snapshots/tasks/main.yml:6
The full traceback is:
Traceback (most recent call last):
File "<stdin>", line 107, in <module>
File "<stdin>", line 99, in _ansiballz_main
File "<stdin>", line 47, in invoke_module
File "<frozen runpy>", line 226, in run_module
File "<frozen runpy>", line 98, in _run_module_code
File "<frozen runpy>", line 88, in _run_code
File "/tmp/ansible_community.vmware.vmware_all_snapshots_info_payload_rm50o0_l/ansible_community.vmware.vmware_all_snapshots_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_all_snapshots_info.py", line 204, in <module>
File "/tmp/ansible_community.vmware.vmware_all_snapshots_info_payload_rm50o0_l/ansible_community.vmware.vmware_all_snapshots_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_all_snapshots_info.py", line 199, in main
File "/tmp/ansible_community.vmware.vmware_all_snapshots_info_payload_rm50o0_l/ansible_community.vmware.vmware_all_snapshots_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_all_snapshots_info.py", line 164, in gather_snapshots_info
AttributeError: 'NoneType' object has no attribute 'name'
fatal: [localhost]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "<stdin>", line 107, in <module>
File "<stdin>", line 99, in _ansiballz_main
File "<stdin>", line 47, in invoke_module
File "<frozen runpy>", line 226, in run_module
File "<frozen runpy>", line 98, in _run_module_code
File "<frozen runpy>", line 88, in _run_code
File "/tmp/ansible_community.vmware.vmware_all_snapshots_info_payload_rm50o0_l/ansible_community.vmware.vmware_all_snapshots_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_all_snapshots_info.py", line 204, in <module>
File "/tmp/ansible_community.vmware.vmware_all_snapshots_info_payload_rm50o0_l/ansible_community.vmware.vmware_all_snapshots_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_all_snapshots_info.py", line 199, in main
File "/tmp/ansible_community.vmware.vmware_all_snapshots_info_payload_rm50o0_l/ansible_community.vmware.vmware_all_snapshots_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_all_snapshots_info.py", line 164, in gather_snapshots_info
AttributeError: 'NoneType' object has no attribute 'name'
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
PLAY RECAP *************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
The text was updated successfully, but these errors were encountered:
SUMMARY
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Execute the adhoc-script which calls the role vm_snapshots. The gathering yml is main.yml in tasks from this role.
Variables are defined in defaults/main.yml from this role.
roles/vm_snapshots/tasks/main.yml:
EXPECTED RESULTS
A return like in the ansible-documentation
ACTUAL RESULTS
Unexpected Error.
The text was updated successfully, but these errors were encountered: