# \#facts

**URL:** https://forum.ansible.com/tag/facts/437.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [LVM facts don't include all LVs and VGs](https://forum.ansible.com/t/lvm-facts-dont-include-all-lvs-and-vgs/45914)

<div class="topic-metadata">

**Author:** [@ProfessorLogout](https://forum.ansible.com/u/ProfessorLogout)\
**Replies:** 4\
**Last updated:** [June 29, 2026, 7:39pm UTC](https://forum.ansible.com/t/lvm-facts-dont-include-all-lvs-and-vgs/45914 "2026-06-29T19:39:35Z")

</div>

Hello all, sharing this here in parts to have it recorded somewhere and in other parts to get some feedback from the community. I’ve spent a bunch of effort deep in Ansible trying to optimize the time it takes to gathe…

---

## [\[Solved\] Create set\_fact list with loop not working](https://forum.ansible.com/t/solved-create-set-fact-list-with-loop-not-working/44892)

<div class="topic-metadata">

**Author:** [@Patrick](https://forum.ansible.com/u/Patrick)\
**Replies:** 1\
**Last updated:** [November 24, 2025, 9:38pm UTC](https://forum.ansible.com/t/solved-create-set-fact-list-with-loop-not-working/44892 "2025-11-24T21:38:11Z")

</div>

Hi, I am trying to create with set\_fact a list of facts with loop but I can’t get it to work. Can anyone please give me a hint what I’m doing wrong? I want a simple list so I can use it with ‘when’. The zones.results is…

---

## [Setup module does not return hw-info on AIX VIO servers](https://forum.ansible.com/t/setup-module-does-not-return-hw-info-on-aix-vio-servers/44780)

<div class="topic-metadata">

**Author:** [@fredjupp](https://forum.ansible.com/u/fredjupp)\
**Replies:** 5\
**Last updated:** [November 14, 2025, 1:18pm UTC](https://forum.ansible.com/t/setup-module-does-not-return-hw-info-on-aix-vio-servers/44780 "2025-11-14T13:18:26Z")

</div>

setup module returns no hw-info on AIX VIOS. we run some playbooks against AIX servers. To complete the picture, we decided to also use ansible vor VIO servers. All AIX servers includings VIOs have python 3.9.16 instal…

---

## [Ansible Core 2.18 fails on remote host with Python 3.6 — future feature annotations is not defined during fact gathering](https://forum.ansible.com/t/ansible-core-2-18-fails-on-remote-host-with-python-3-6-future-feature-annotations-is-not-defined-during-fact-gathering/44802)

<div class="topic-metadata">

**Author:** [@harshit.sheth](https://forum.ansible.com/u/harshit.sheth)\
**Replies:** 2\
**Last updated:** [November 10, 2025, 4:16pm UTC](https://forum.ansible.com/t/ansible-core-2-18-fails-on-remote-host-with-python-3-6-future-feature-annotations-is-not-defined-during-fact-gathering/44802 "2025-11-10T16:16:43Z")

</div>

Hello Team, I’m encountering a blocking issue with Ansible Core 2.18.10 when running playbooks on remote hosts that only have Python 3.6.8 installed. The error occurs during the Gathering Facts phase and prevents the pl…

---

## [Gathering facts with custom fact\_path](https://forum.ansible.com/t/gathering-facts-with-custom-fact-path/44752)

<div class="topic-metadata">

**Author:** [@ljkimmz](https://forum.ansible.com/u/ljkimmz)\
**Replies:** 2\
**Last updated:** [October 29, 2025, 10:44pm UTC](https://forum.ansible.com/t/gathering-facts-with-custom-fact-path/44752 "2025-10-29T22:44:21Z")

</div>

Need help understanding the differences and limitations of: Play-level gather\_facts Explicit ansible.builtin.gather\_facts Explicit ansible.builtin.setup From observation it seems that ansible.builtin.gather\_facts is e…

---

## [Gatering facts throws exception "Task failed: not enough values to unpack (expected 4, got 2)"](https://forum.ansible.com/t/gatering-facts-throws-exception-task-failed-not-enough-values-to-unpack-expected-4-got-2/44708)

<div class="topic-metadata">

**Author:** [@haasalex](https://forum.ansible.com/u/haasalex)\
**Replies:** 5\
**Last updated:** [October 22, 2025, 8:27pm UTC](https://forum.ansible.com/t/gatering-facts-throws-exception-task-failed-not-enough-values-to-unpack-expected-4-got-2/44708 "2025-10-22T20:27:54Z")

</div>

I get an exception when I run my playbook: “Task failed: not enough values to unpack (expected 4, got 2)” When I run ansible myhost -m ping -i hosts.yml -u root, everthing is ok. When I run any playbook (even targeting…

---

## [Issue passing Set\_Facts variable from one playbook to another](https://forum.ansible.com/t/issue-passing-set-facts-variable-from-one-playbook-to-another/44582)

<div class="topic-metadata">

**Author:** [@baily](https://forum.ansible.com/u/baily)\
**Replies:** 3\
**Last updated:** [September 30, 2025, 3:38pm UTC](https://forum.ansible.com/t/issue-passing-set-facts-variable-from-one-playbook-to-another/44582 "2025-09-30T15:38:09Z")

</div>

Hi, So, i’m not sure if this is the right way to complete this task and not really a Meraki specific thing, but through i would ask the question. So I’m using the below code to grab the Network ID for a specific networ…

---

## [amazon.aws.ec2\_metadata\_facts from remote hosts](https://forum.ansible.com/t/amazon-aws-ec2-metadata-facts-from-remote-hosts/44381)

<div class="topic-metadata">

**Author:** [@herda05](https://forum.ansible.com/u/herda05)\
**Replies:** 3\
**Last updated:** [August 27, 2025, 6:42pm UTC](https://forum.ansible.com/t/amazon-aws-ec2-metadata-facts-from-remote-hosts/44381 "2025-08-27T18:42:06Z")

</div>

This module says in the title: amazon.aws.ec2\_metadata\_facts module – Gathers facts (instance metadata) about remote hosts within EC2 However, no matter what I do the metadata returned is all on the ansible host itself …

---

## [Using "short lived facts" and caching, Eg. ansible\_uptime\_seconds](https://forum.ansible.com/t/using-short-lived-facts-and-caching-eg-ansible-uptime-seconds/44324)

<div class="topic-metadata">

**Author:** [@James\_Antill](https://forum.ansible.com/u/James_Antill)\
**Replies:** 5\
**Last updated:** [August 20, 2025, 2:39am UTC](https://forum.ansible.com/t/using-short-lived-facts-and-caching-eg-ansible-uptime-seconds/44324 "2025-08-20T02:39:17Z")

</div>

I’m currently using ansible\_uptime\_seconds however that gives an old cached value a lot more than I’d expect it to (Eg. reboot the server, and then run some task on the server to register a variable but ansible\_uptime\_se…

---

## [Using facts in 'tasks\_from' with 'include\_role' will load the same task file for all hosts.](https://forum.ansible.com/t/using-facts-in-tasks-from-with-include-role-will-load-the-same-task-file-for-all-hosts/44204)

<div class="topic-metadata">

**Author:** [@carlos.e](https://forum.ansible.com/u/carlos.e)\
**Replies:** 5\
**Last updated:** [August 7, 2025, 3:22pm UTC](https://forum.ansible.com/t/using-facts-in-tasks-from-with-include-role-will-load-the-same-task-file-for-all-hosts/44204 "2025-08-07T15:22:57Z")

</div>

I was trying to use different entry points for a role depending on ansible\_facts\['system'\] var. The following example role has only 2 task files: Linux.yml: --- - name: Assert ansible.builtin.assert: that: …

---

## [Fact delegation when calling a role. I'm going crazy.](https://forum.ansible.com/t/fact-delegation-when-calling-a-role-im-going-crazy/44214)

<div class="topic-metadata">

**Author:** [@nosebeggar](https://forum.ansible.com/u/nosebeggar)\
**Replies:** 2\
**Last updated:** [August 7, 2025, 7:29am UTC](https://forum.ansible.com/t/fact-delegation-when-calling-a-role-im-going-crazy/44214 "2025-08-07T07:29:02Z")

</div>

Hi all, I signed up specifically for this topic because I’m trying to wrap my head around this and there seems to be absolutely no solution for this other than duplicated code. In this example i’m trying to find the co…

---

## [Inline template into variable](https://forum.ansible.com/t/inline-template-into-variable/40818)

<div class="topic-metadata">

**Author:** [@vegivamp](https://forum.ansible.com/u/vegivamp)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 12:53pm UTC](https://forum.ansible.com/t/inline-template-into-variable/40818 "2025-03-06T12:53:15Z")

</div>

Hi there, I’ve been trying to do something I think I already saw done, but I can’t get it to work: I want to parse an inline template into a variable. Everything I find is either to file (ansible.builtin.template task)…

---

## [When should modules use/return \`ansible\_facts\`?](https://forum.ansible.com/t/when-should-modules-use-return-ansible-facts/40297)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 10\
**Last updated:** [February 19, 2025, 9:28pm UTC](https://forum.ansible.com/t/when-should-modules-use-return-ansible-facts/40297 "2025-02-19T21:28:07Z")

</div>

Modules can return regular return values as well as ansible\_facts, which automatically appear in the global namespace (unless you set INJECT\_FACTS\_AS\_VARS=false - though doing that will likely break a lot of playbooks an…
