[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 in Ansible by Sitara
3,119 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 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
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 in Ansible by Anisha
52 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 in Ansible by Haider
181 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,380 points
250 views
0 votes
1 answer
0 votes
1 answer