Hi,
I am looking to perform “bitwise OR” operation like below inside the Ansible playbook.
0x102030 or 0x908060
I understood from the internet that there is no direct way to do this. So, as sugegsted in this post (How to perform bitwise operations in Ansible?), I have created the .py file for “bitwise or” and placed under specific paths under filter dir.
1)The ansible “.cfg” file is edited to specify the filter plugin path.
filter_plugins = /usr/share/ansible/plugins/filter:~/.ansible/plugins/filter
2)Also I tried setting env variable “ANSIBLE_FILTER_PLUGINS” with the dir path of filter plugin.
3)Ansible version on controller node is: 3.6.10
But unfortunately I dont see the playbook is able to find the new defined filter. I am not sure if I am missing anything. Is there anything else i need to be done?
Is there a way i can do bitwise operation using simple way.
Any help with this is appreciate.
Thanks,
Reshma