I want to validate my inventory to have only a certain number of hosts to have a certain value. I tried to do that using assert but I am unable to find a way to do so.
Example inventory (ini) file: [nginx] 10.52.130.31 [backends] 10.52.194.41 read_only="true" 10.52.130.2 read_only="false" 10.52.130.31 read_only="true" Want to validate there is only one host in backends with read_only as false. Tried a lot of things but could not get it to work. Any help? Thank you Anuj Agrawal -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CABnk5p3mL-rrkAXRj2hByJpjy6PHaOZN5nM12hKCFO88htx8ew%40mail.gmail.com.