Skip to content

Ansible Quick tips

Quickly show a variable value, you do not need to interpolate when using var:

- name: debug
  ansible.builtin.debug:
    var: default_es_agent_policy_enrollment

Stop a play when it hits this step in a task. This is helpful when you are debugging and want to just stop the play after your debug step.

- meta: end_play

Sources:

  • https://stackoverflow.com/a/42310665