Created
January 13, 2016 19:52
-
-
Save fxfitz/574a3855d070bd407a1e 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
- include: tasks/linux-configure-restart.yaml agent_state=present | |
#### | |
- name: Modify rsyslog configuration | |
lineinfile: | |
dest: '{{ rsyslog.stat.path }}' | |
line: 'configline' | |
state: '{{ agent_state }}' | |
when: rsyslog.stat.exists | |
#### | |
fatal: [x.x.x.x] => One or more undefined variables: 'agent_state' is undefined | |
# ansible --version | |
ansible 1.9.4 | |
configured module search path = None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment