Difference between revisions of "Hosts: (Ansible)"

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

Latest revision as of 17:37, 16 January 2023

Advertising: