[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

+1 vote

I'm trying to run an ansible playbook and encountered the following warning:

 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

What do I do?

Jan 21, 2019 in Ansible by Sitara
7,056 views

1 answer to this question.

+2 votes

Hey @Sitara, 

 I just found it is because the temp path is not right. Go to your config file and change the temp path. I had to change it to the absolute path to make it work.

Hope it helps.

answered Jan 21, 2019 by Naina
There are two temp paths which one do i modify?  There is an local_temp and a remote_temp.  So far i have modified the temp path to only read hosts as the tutorial I'm watching tells me.  Do I have to configure those files with the same path?
Hi @LinuxMenace, changing just the local_temp should be good enough. Try that and let me know if it works.
Hi,

I am getting the same eror message, what do I change on the local_temp path? where should I point it to? the current one is as below:

#local_tmp =~/.ansible/tmp
Hey! @Naina's answer says you need to keep your local_temp path as your absolute path instead of relative path.

Related Questions In Ansible

0 votes
1 answer

How to list down all the hosts in Ansible?

Hi@akhtar, You can use the option --list-hosts. It will ...READ MORE

answered Jul 28 in Ansible by MD
• 43,260 points
40 views
0 votes
1 answer
0 votes
1 answer

How do I make my_dir available for all hosts? - Ansible

Hey @Kiara,  f you want to make my_dir available to ...READ MORE

answered Feb 1, 2019 in Ansible by Anisha
106 views
0 votes
1 answer

Playbook to add hosts to the known hosts list - Ansible

Hey @Kiran, try something like this: - name: ...READ MORE

answered Mar 25, 2019 in Ansible by Haider
720 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
606 views
0 votes
1 answer
0 votes
1 answer

reboot all web servers in Canada, 15 at a time. is that possible in Ansible?

Of course, that is possible @Neel, just ...READ MORE

answered Mar 5, 2019 in Ansible by Yogesh
66 views