sdm.oor.set_role_fact – set a fact in host's role variables cache

Description

Parameter

ParameterChoices / DefaultsDescription
key_value
raw / required
  • The set_role_fact module takes key=value pairs as variables to set in the role scope.

Examples

- name: "set a role fact"
  sdm.oor.set_role_fact:
     fact_one: "fact one"

- name: "set complex role facts"
  sdm.oor.set_role_fact:
     fact_one: "fact one"
     fact_two: "{{ local_var * 2 }}"

License

GPL-3 license

Contributors