test rulebook

This commit is contained in:
Sean Anderson 2025-05-15 13:45:51 -05:00
parent 12f3a1e9d9
commit fecce13c5b
2 changed files with 16 additions and 0 deletions

View File

@ -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
View 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