Skip to content

Instantly share code, notes, and snippets.

@knakayama
Created April 2, 2016 11:14
Show Gist options
  • Save knakayama/688ff01ac848f7d95aa7972f9e97c2ae to your computer and use it in GitHub Desktop.
Save knakayama/688ff01ac848f7d95aa7972f9e97c2ae to your computer and use it in GitHub Desktop.
---
- name: Check if hoge in fuga
shell: |
grep -F 'hoge' roles/test/files/path/to/fuga
register: res
always_run: yes
failed_when: no
changed_when: res.rc == 0
notify:
- Ping only if hoge in fuga
- name: flush
meta: flush_handlers
- name: unko
shell: |
uname -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment