I'm segregating my development from my production inventories, and somewhat following the advice given in Laying out roles, inventories and playbooks <https://leucos.github.io/ansible-files-layout>. I therefore have the following directory structure.
/path_to_playbook/inventories /path_to_playbook/inventories/development/hosts /path_to_playbook/inventories/development/hosts/host_file_1 /path_to_playbook/inventories/development/hosts/host_file_2 /path_to_playbook/inventories/production/hosts /path_to_playbook/inventories/production/hosts/host_file_1 /path_to_playbook/inventories/production/hosts/host_file_2 Now how can I write an ansible ad-hoc command to ping all the hosts in the /path_to_playbook/inventories/development/hosts directory? I don't want to create a /path_to_playbook/inventories/development/hosts/all_hosts file that will contain the hosts in the host_file_* files since that will be hard to maintain -- 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/50556d92-5e16-48cc-a227-344fa0f34b9a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
