diff --git a/inventory b/inventory index 9c8c768..a24f985 100644 --- a/inventory +++ b/inventory @@ -16,6 +16,9 @@ goldsquad-[1:4].seandersontech.com [database] goldsquad-2.seandersontech.com +[fileshare] +goldsquad-4.seandersontech.com + [webservers] webserver-01 webserver-02 diff --git a/rulebooks/file_change.yml b/rulebooks/file_change.yml new file mode 100644 index 0000000..dddbd42 --- /dev/null +++ b/rulebooks/file_change.yml @@ -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