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? 
<https://stackoverflow.com/questions/48550786/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

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/34eb3966-1d09-4057-a659-78b5c3e87eb6n%40googlegroups.com.

Reply via email to