Skip to content

Instantly share code, notes, and snippets.

@fxfitz
Created January 13, 2016 19:52
Show Gist options
  • Save fxfitz/574a3855d070bd407a1e to your computer and use it in GitHub Desktop.
Save fxfitz/574a3855d070bd407a1e to your computer and use it in GitHub Desktop.
- 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