Skip to content

Instantly share code, notes, and snippets.

@Anthonyhawkins
Created June 8, 2021 17:27
Show Gist options
  • Save Anthonyhawkins/22b2edbce875fdac069f4e0f76085a50 to your computer and use it in GitHub Desktop.
Save Anthonyhawkins/22b2edbce875fdac069f4e0f76085a50 to your computer and use it in GitHub Desktop.
{% macro do_bar() -%}
foo: bar
{% if environment == "site-a"%}
enable_x: true
{%- endif %}
{%- endmacro %}
...
- task: do_foo
config:
{{ do_foo() | indent(6)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment