Hi there! Is there any way to overwrite the 'all/*' keyword in Ansible
inventory? How can we prevent someone to run something nasty (intentionally
or by mistake) over all our inventory?
We did a couple of tests using a dynamic inventory, but no luck. As a
workaround, we are thinking to force all the playbooks to have a line
similar to this one:
- hosts: "{{ target_hosts | regex_replace('(all|\\*)',
'invalid_target_host') }}"
... but this doesn't sound like the best option, any ideas?
Thanks!
--
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/10c66396-aab0-4506-87ad-9a1d8676d097n%40googlegroups.com.