I have a task that runs when there is a partial match on the inventory_hostname:
when: '"lab" in inventory_hostname' I need to figure out a way to do the opposite, meaning, when 'lab' is not in inventory_hostname the task will run. Any advice? -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2f0d13fd-cb28-4907-81b9-ab9c263cc454%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
