Over the past month or so, the following task has consistently failed for
me, because the specified dataset already exists:
- name: Create zfs datasets
zfs:
name: zones/images
state: present
become: true
The failure looks like this: (reformatted to make it a bit easier to
read...)
"changed": false,
"failed": true,
"module_stderr": "",
"module_stdout": "Traceback (most recent call last):\r\n
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 245, in
<module>\r\n main()\r\n
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 227, in main\r\n
zfs = Zfs(module, name, properties)\r\n
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 90, in
__init__\r\n self.enhanced_sharing = self.check_enhanced_sharing()\r\n
File \"/tmp/ansible_iWcvPS/ansible_module_zfs.py\", line 99, in
check_enhanced_sharing\r\n if int(version) >= 34:\r\nValueError: invalid
literal for int() with base 10: '-'\r\n",
"msg": "MODULE FAILURE",
"parsed": false
}
Is there a fix or workaround available?
For now I am just setting ignore_errors: true
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e01a9129-ebf7-413d-be13-666a8888c9a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.