set
!set
Category: control
Set one or more host variables. Top-level string values are template-expanded; non-string values are copied verbatim.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
vars | map | no | Mapping of variable name to value. |
Examples
- !set
vars:
service_port: 8080
config_path: /etc/{{ service_name }}/app.conf