Skip to content

Instantly share code, notes, and snippets.

@tmaeda
Created May 29, 2015 10:21
Show Gist options
  • Save tmaeda/f932cdff8b46aed4004d to your computer and use it in GitHub Desktop.
Save tmaeda/f932cdff8b46aed4004d to your computer and use it in GitHub Desktop.
ansible-playbook -i localhost var_check.yml
---
- hosts: all
vars:
param1: 111
tasks:
- fail: msg="{{ item }} is not defined"
when: "{{ item }} is not defined"
with_items:
- param1
- param2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment