Created
January 13, 2016 19:35
-
-
Save fxfitz/a9a072d146b3196499cb to your computer and use it in GitHub Desktop.
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
##################### | |
MAIN PLAYBOOK EXCERPT | |
##################### | |
- include: tasks/configure-restart.yaml | |
vars: | |
agent_state: present | |
################# | |
TASK FILE EXCERPT | |
################# | |
- name: Modify configuration | |
lineinfile: | |
dest: '{{ crazy.stat.path }}' | |
line: 'some silly configuration line' | |
state: '{{ agent_state }}' | |
when: crazy.stat.exists | |
##### | |
ERROR | |
##### | |
fatal: [x.x.x.x] => One or more undefined variables: 'agent_state' is undefined | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment