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!