add gathering-facts example
This commit is contained in:
parent
03e9d9a742
commit
e13842fad1
1 changed files with 10 additions and 0 deletions
|
@ -213,6 +213,16 @@ the remote nodes will be terminated.
|
|||
Typically you'll be only be backgrounding long-running
|
||||
shell commands or software upgrades only. Backgrounding the copy module does not do a background file transfer. :doc:`playbooks` also support polling, and have a simplified syntax for this.
|
||||
|
||||
Gathering Facts
|
||||
```````````````
|
||||
|
||||
For each system facts are gathered. These can be used to implement conditional execution of tasks but also just to get ad-hoc information about your system. You can see all facts via:
|
||||
|
||||
$ ansible all -m setup
|
||||
|
||||
Its also possible to filter via and export the facts, see the "setup" module documentation for details how to do that.
|
||||
|
||||
|
||||
Limiting Selected Hosts
|
||||
```````````````````````
|
||||
|
||||
|
|
Loading…
Reference in a new issue