Set variables on the current execution host for use by subsequent tasks.
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
| any | Variables to set, in key-value format | string or map | No | - |
1. Set string
- name: set string
set_fact:
a: b
c: d2. Set nested map
- name: set map
set_fact:
a:
b: c