Hi, I have an ansible module that adds and removes servers from the load 
balancer.  If I do:

ansible localhost -m modulename -a 'servername=foo inbalancer=present'  

it adds the module to the load balancer and reports changed if it wasn't 
there before, and not changed if it was already there. 

Same for 'inbalancer=absent'  It takes the server out of the load balancer 
and reports changed or not changed. 

So I know if the server is in the balancer when I start through this 
section of the code.

I'd like to have the module set a variable that can be (a) reported on the 
output and (b) tested for in a playbook.  I'm more interested in reporting, 
so I can have a shell script that reports the state of my load balancer and 
all it's servers.

After much reading, I think I need to ask for an approach.

Thanks, 

Ed Greenbert







-- 
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/72206ae9-a364-4def-b1b4-ca4926d7b38e%40googlegroups.com.

Reply via email to