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

0 votes

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
1,862 views

1 answer to this question.

0 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.

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
30 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
85 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
146 views
0 votes
1 answer
0 votes
1 answer