I'm trying to get a basic iocage image fetched:
iocage: state=fetched
But it fails with the traceback below.
What am I doing wrong?
The full traceback is:
File "/tmp/ansible_iocage_payload_akdkciil/ansible_iocage_payload.zip/ansible/module_utils/basic.py", line 1783, in _check_argument_types
param[k] = type_checker(value)
File "/tmp/ansible_iocage_payload_akdkciil/ansible_iocage_payload.zip/ansible/module_utils/basic.py", line 1649, in _check_type_bool
return check_type_bool(value)
File "/tmp/ansible_iocage_payload_akdkciil/ansible_iocage_payload.zip/ansible/module_utils/common/validation.py", line 450, in check_type_bool
return boolean(value)
File "/tmp/ansible_iocage_payload_akdkciil/ansible_iocage_payload.zip/ansible/module_utils/parsing/convert_bool.py", line 26, in boolean
raise TypeError("The value '%s' is not a valid boolean. Valid booleans include: %s" % (to_text(value), ', '.join(repr(i) for i in BOOLEANS)))
fatal: [zfstest.digiware.nl]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"args": "",
"clone_from": "",
"cmd": "",
"components": "",
"force": "",
"name": "",
"properties": {},
"release": "",
"state": "fetched",
"stderr": "",
"stdout": "",
"update": "",
"user": ""
}
},
"msg": "argument update is of type <class 'str'> and we were unable to convert to bool: The value '' is not a valid boolean. Valid booleans include: 0, 1, 'off', 'false', '0', 'n', 'true', 'yes', '1', 't', 'f', 'on', 'no', 'y'"
}
[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (<ansible.plugins.callback./usr/local/lib/python3.7/site-
packages/ansible/plugins/callback/mail.CallbackModule object at 0x80405f550>): 'in <string>' requires string as left operand, not
int
Callback Exception:
File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_queue_manager.py", line 333, in send_callback
method(*new_args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/callback/mail.py", line 223, in v2_runner_on_failed
self.mail_result(result, 'Failed')
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/callback/mail.py", line 213, in mail_result
self.mail(subject=subject, body=body)
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/callback/mail.py", line 131, in mail
smtp.sendmail(b_sender, b_address, b_content)
File "/usr/local/lib/python3.7/smtplib.py", line 861, in sendmail
(code, resp) = self.mail(from_addr, esmtp_opts)
File "/usr/local/lib/python3.7/smtplib.py", line 534, in mail
self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))
File "/usr/local/lib/python3.7/smtplib.py", line 150, in quoteaddr
displayname, addr = email.utils.parseaddr(addrstring)
File "/usr/local/lib/python3.7/email/utils.py", line 212, in parseaddr
addrs = _AddressList(addr).addresslist
File "/usr/local/lib/python3.7/email/_parseaddr.py", line 509, in __init__
self.addresslist = self.getaddrlist()
File "/usr/local/lib/python3.7/email/_parseaddr.py", line 253, in getaddrlist
ad = self.getaddress()
File "/usr/local/lib/python3.7/email/_parseaddr.py", line 263, in getaddress
self.gotonext()
File "/usr/local/lib/python3.7/email/_parseaddr.py", line 236, in gotonext
if self.field[self.pos] in self.LWS + '\n\r':
I'm trying to get a basic iocage image fetched:
iocage: state=fetched
But it fails with the traceback below. What am I doing wrong?