test rulebook
This commit is contained in:
parent
12f3a1e9d9
commit
fecce13c5b
@ -16,6 +16,9 @@ goldsquad-[1:4].seandersontech.com
|
||||
[database]
|
||||
goldsquad-2.seandersontech.com
|
||||
|
||||
[fileshare]
|
||||
goldsquad-4.seandersontech.com
|
||||
|
||||
[webservers]
|
||||
webserver-01
|
||||
webserver-02
|
||||
|
||||
13
rulebooks/file_change.yml
Normal file
13
rulebooks/file_change.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Do something when file changes
|
||||
hosts: fileshare
|
||||
gather_facts: false
|
||||
sources:
|
||||
- name: File to watch
|
||||
ansible.eda.file:
|
||||
- /home/seandersont/eda_file
|
||||
rules:
|
||||
- name: file changed
|
||||
condition: event.changed == true
|
||||
action:
|
||||
debug
|
||||
Loading…
x
Reference in New Issue
Block a user