Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-28 Thread Jean-Yves LENHOF
Le 28/01/2020 à 22:13, Stefan Hornburg (Racke) a écrit : On 1/26/20 3:11 PM, Shifa Shaikh wrote: Dick Hi, My requirement is not about configuring a webserver. It is to maintain a check on a set of files. If the file changes by checksum or permissions I wish to trigger an alert. Thus, my

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-28 Thread Stefan Hornburg (Racke)
On 1/26/20 3:11 PM, Shifa Shaikh wrote: > Dick Hi,  > > My requirement is not about configuring a webserver.  > > It is to maintain a check on a set of files. If the file changes by checksum > or permissions I wish to trigger an alert.  > > Thus, my ansible will stat the file and then compare

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-26 Thread Shifa Shaikh
Dick Hi, My requirement is not about configuring a webserver. It is to maintain a check on a set of files. If the file changes by checksum or permissions I wish to trigger an alert. Thus, my ansible will stat the file and then compare the checksum and mode that was previously stored in the

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-25 Thread Dick Visser
Hi The information you've provided seems to contain several cases of wheel reinvention. Rather than helping you do that, please explain what you are REALLY looking to achieve. The file names in your example suggest: "configuring a web server". In which case, a few template tasks and a handler

[ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-24 Thread Shifa Shaikh
I use the stat module to read multiple files statistics from each remote server. Thus, I'm able to get the file mode and checksum value of say 3 files on host1 and 2 files on host2. I wish to know what is a good way to create/construct an include_vars file so that I can easily read back each