Re: [ansible-project] Re: Obtain --limit parameter in playbook

2017-07-01 Thread Kai Stian Olstad
On 26. juni 2017 17:05, thirsch.epa...@gmail.com wrote: Can anybody help me with this? I want to know from inside the playbook, what was passed to the --limit parameter (e.g. "my-vm.my-domain.com:localhost") To my knowledge you can't. But you have ansible_play_batch variable that contains all

[ansible-project] Re: Obtain --limit parameter in playbook

2017-06-26 Thread thirsch . epages
Can anybody help me with this? I want to know from inside the playbook, what was passed to the --limit parameter (e.g. "my-vm.my-domain.com:localhost") The reason I cannot just connect to the "my-domain" machine, is that I want to read an inventory variable, (the MAC address) before the