Created
April 2, 2016 11:14
-
-
Save knakayama/688ff01ac848f7d95aa7972f9e97c2ae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
- 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