Difference between revisions of "Examples of Ansible execution modules"

From wikieduonline
Jump to navigation Jump to search
 
Line 9: Line 9:
 
== Errors ==
 
== Errors ==
 
  ansible -m shell [[yourhost]] -a uptime
 
  ansible -m shell [[yourhost]] -a uptime
  [WARNING]: No inventory was parsed, only implicit localhost is available
+
  [WARNING]: [[No inventory was parsed, only implicit localhost is available]]
  [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
+
  [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
localhost does not match 'all'
+
  [WARNING]: [[Could not match supplied host pattern, ignoring]]: yourhost
  [WARNING]: Could not match supplied host pattern, ignoring: yourhost
 
  
 
== Example ==
 
== Example ==

Latest revision as of 13:27, 18 April 2023


Errors[edit]

ansible -m shell yourhost -a uptime
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: yourhost

Example[edit]


Related terms[edit]

See also[edit]

Advertising: