set_fact

Collection: builtin

Full Name: set_fact

Controller module — runs on the local controller, not on remote hosts.

Synopsis

Manage set fact

Parameters

NameTypeRequiredDefaultDescription
cacheableboolfalseThis boolean converts the variable into an actual ‘fact’ which will also be added to the fact cache

Example

- name: Example set_fact task
  set_fact:
    cacheable: false