Disable the all hosts directive

15 views
Skip to first unread message

Kobus

unread,
Feb 9, 2017, 8:58:31 AM2/9/17
to Ansible Project
Hi

I am fairly new to ansible, but wanted to disable the all hosts directive. I want to force people to use a specific hosts group and never the all group. Biggest reason for this is the segregation of environment, mostly for PCI:DSS purposes.

Thanks

Kobus

Kai Stian Olstad

unread,
Feb 9, 2017, 9:57:00 AM2/9/17
to ansible...@googlegroups.com
To my knowledge that is not possible.
Why not split the inventory instead to achieve segregation that way?
The all will only be for the host in that specific inventory.

https://docs.ansible.com/ansible/playbooks_best_practices.html#alternative-directory-layout


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages