Dig deeper into Ansible and F5 integration
Basics of Ansible and F5 integration were covered in a joint webinar held earlier in March 2017. To learn more about the integration and current F5 module support along with some use cases view the w...
Published Apr 05, 2017
Version 1.0Payal_S
Ret. Employee
Joined May 16, 2019
Payal_S
Ret. Employee
Joined May 16, 2019
B_Lawrimore_151
Jun 06, 2018Nimbostratus
you have the question correct. the answer looks correct as well, however I get an error upon execution:
TypeError: unhashable type: 'list'
failed: [10.10.10.10] (item={u'irules': [u'irule1, u'irule2'], u'name': u'vs_test01'}) => {
"changed": false,
"item": {
"irules": [
"irule1",
"irule2"
],
"name": "vs_test01"
},
"rc": 1
}
MSG:
MODULE FAILURE
MODULE_STDERR:
Traceback (most recent call last):
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1657, in
main()
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1648, in main
results = mm.exec_module()
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1402, in exec_module
changed = self.present()
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1425, in present
return self.update()
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1436, in update
if not self.should_update():
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1444, in should_update
result = self._update_changed_options()
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1474, in _update_changed_options
change = diff.compare(k)
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1113, in compare
result = getattr(self, param)
File "/tmp/ansible_RIMJkD/ansible_module_bigip_virtual_server.py", line 1359, in irules
if sorted(set(self.want.irules)) != sorted(set(self.have.irules)):
TypeError: unhashable type: 'list'
I'm wondering if I have a bad module or plugin version that is causing my headaches. ive updated F5-sdk, suds, bigsuds, etc. I'm running ansible 2.5.2 and python 2.7.5.
Having this ability will round out the automation of building a VS, and modifying VSs in bulk. You've been very helpful.