Re: [ansible-project] win_copy azure ansible module not working

2019-04-14 Thread gottumukkala srija
I changed localhost to remote_host as suggested, but while running the playbook getting error as "no hosts matched". Is there any possible way that we can get on call to discuss furtherPlease suggest..!!! On Friday, April 12, 2019 at 4:02:12 PM UTC+5:30, CORLEONE## wrote: > > If u want to

Re: [ansible-project] how to access hosts variable in ansible tasks

2019-04-14 Thread Raghavendra Rao
https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#accessing-information-about-other-hosts-with-magic-variables On Sun, 14 Apr 2019 at 18:24, Kunalsing Thakur wrote: > can you point me to Ansible doc For this also > > I need to use only test or test1 > > > On Sunday, Apr

Re: [ansible-project] Loop problem

2019-04-14 Thread Sergio Fernández
Didn't know about that function! Thank you so much. El domingo, 14 de abril de 2019, 0:08:20 (UTC+2), Kai Stian Olstad escribió: > > On 13.04.2019 23:53, Sergio Fernández wrote: > > Currently as the script is displayed, it creates 1 and send it all to > all > > of the servers. > > But the requ

Re: [ansible-project] how to access hosts variable in ansible tasks

2019-04-14 Thread Kunalsing Thakur
can you point me to Ansible doc For this also I need to use only test or test1 On Sunday, April 14, 2019 at 3:43:54 PM UTC+5:30, Raghavendra Rao wrote: > > You can use inventory_hostname. > > This takes the name of the hosts as configured in the inventory file. > > On Sun, 14 Apr 2019, 09:34 Ku

Re: [ansible-project] how to access hosts variable in ansible tasks

2019-04-14 Thread Raghavendra Rao
You can use inventory_hostname. This takes the name of the hosts as configured in the inventory file. On Sun, 14 Apr 2019, 09:34 Kunalsing Thakur, wrote: > - hosts: test.example.com, test1.example.com > gather_facts: false > tasks: > - name: checking uptime for {{ ansible_hostname }} >