New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a more in depth doc on cacheable option #47878
Conversation
Hi @bcoca, thank you for submitting this pull-request! |
@@ -35,8 +35,9 @@ | |||
required: true | |||
cacheable: | |||
description: | |||
- This boolean indicates if the facts set will also be added to the | |||
fact cache, if fact caching is enabled. | |||
- This boolean converts the variable into and actual 'fact' which will also be added to the fact cache, if fact caching is enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/and/an/
- This boolean indicates if the facts set will also be added to the | ||
fact cache, if fact caching is enabled. | ||
- This boolean converts the variable into and actual 'fact' which will also be added to the fact cache, if fact caching is enabled. | ||
- Normally this module creates 'host level variables' and has much higher precedence, this option changes the nature and precedence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you able to state what that precedence is in terms of the ones at https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable (maybe just a link).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, that list already states 'set_fact' vs 'host fact' are 7 steps away
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, should have actually gone to that link and read it properly
* a more indepth doc on cacheable option
* a more indepth doc on cacheable option
ISSUE TYPE
COMPONENT NAME
set_fact
ANSIBLE VERSION