Skip to content

set

!set

Category: control

Set one or more host variables. Top-level string values are template-expanded; non-string values are copied verbatim.

Parameters

NameTypeRequiredDescription
varsmapnoMapping of variable name to value.

Examples

- !set
  vars:
    service_port: 8080
    config_path: /etc/{{ service_name }}/app.conf