Difference between revisions of "Hosts: (Ansible)"

From wikieduonline
Jump to navigation Jump to search
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 +
https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html
  
 
*<code>hosts: all</code>
 
*<code>hosts: all</code>
Line 5: Line 6:
 
*<code>hosts: [[localhost]]</code>
 
*<code>hosts: [[localhost]]</code>
  
*<code>[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'</code>
 
  
*<code>ERROR! Hosts list cannot be empty - please check your playbook</code>
+
== Errors ==
 +
* <code>[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'</code>
  
*<code>skipping: no hosts matched</code>
+
* <code>ERROR! Hosts list cannot be empty - please check your playbook</code>
  
 +
* <code>[[skipping: no hosts matched]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[tasks:]]</code>
 
* <code>[[tasks:]]</code>
 +
* <code>[[gather_facts:]]</code>
 +
* <code>[[/etc/ansible/hosts]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 11:41, 22 October 2021

Advertising: