mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Restore filter on Windows and version reference for Windows facts.
This commit is contained in:
parent
a874e1e25e
commit
072c68ea79
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- path used for local ansible facts (*.fact) - files in this dir
|
- path used for local ansible facts (*.fact) - files in this dir
|
||||||
will be run (if executable) and their results be added to ansible_local facts
|
will be run (if executable) and their results be added to ansible_local facts
|
||||||
if a file is not executable it is read.
|
if a file is not executable it is read. Check notes for Windows options. (from 2.1 on)
|
||||||
File/results format can be json or ini-format
|
File/results format can be json or ini-format
|
||||||
required: false
|
required: false
|
||||||
default: '/etc/ansible/facts.d'
|
default: '/etc/ansible/facts.d'
|
||||||
|
@ -54,10 +54,13 @@ notes:
|
||||||
install I(facter) and I(ohai) means you can avoid Ruby-dependencies on your
|
install I(facter) and I(ohai) means you can avoid Ruby-dependencies on your
|
||||||
remote systems. (See also M(facter) and M(ohai).)
|
remote systems. (See also M(facter) and M(ohai).)
|
||||||
- The filter option filters only the first level subkey below ansible_facts.
|
- The filter option filters only the first level subkey below ansible_facts.
|
||||||
|
- If the target host is Windows, you will not currently have the ability to use
|
||||||
|
C(filter) as this is provided by a simpler implementation of the module.
|
||||||
- If the target host is Windows you can now use C(fact_path). Make sure that this path
|
- If the target host is Windows you can now use C(fact_path). Make sure that this path
|
||||||
exists on the target host. Files in this path MUST be PowerShell scripts (*.ps1) and
|
exists on the target host. Files in this path MUST be PowerShell scripts (*.ps1) and
|
||||||
their output must be formattable in JSON (Ansible will take care of this). Test the
|
their output must be formattable in JSON (Ansible will take care of this). Test the
|
||||||
output of your scripts.
|
output of your scripts.
|
||||||
|
This option was added in Ansible 2.1.
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
- "Michael DeHaan"
|
- "Michael DeHaan"
|
||||||
|
|
Loading…
Add table
Reference in a new issue