From c5ec0fcb34af3dba4fdc6afcd1bd52ab617cc0c9 Mon Sep 17 00:00:00 2001 From: WilliamVannuffelen Date: Mon, 24 Feb 2020 20:58:18 +0100 Subject: [PATCH] Setup documentation - windows custom fact variable name (#67690) --- lib/ansible/modules/system/setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/system/setup.py b/lib/ansible/modules/system/setup.py index 9cd342a1f45..ccf40faa8e5 100644 --- a/lib/ansible/modules/system/setup.py +++ b/lib/ansible/modules/system/setup.py @@ -51,11 +51,13 @@ options: version_added: "1.3" description: - Path used for local ansible facts (C(*.fact)) - files in this dir - will be run (if executable) and their results be added to C(ansible_local) facts - if a file is not executable it is read. Check notes for Windows options. (from 2.1 on) + will be run (if executable) and their results be added to C(ansible_local) facts. + If a file is not executable it is read instead. Check notes for Windows options. (from 2.1 on) File/results format can be JSON or INI-format. The default C(fact_path) can be specified in C(ansible.cfg) for when setup is automatically called as part of C(gather_facts). + NOTE - For windows clients, the results will be added to a variable named after the + local file (without extension suffix), rather than C(ansible_local). required: false default: /etc/ansible/facts.d description: