Created
May 29, 2015 10:21
-
-
Save tmaeda/f932cdff8b46aed4004d to your computer and use it in GitHub Desktop.
ansible-playbook -i localhost var_check.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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