On Wed, 6 Sept 2023 at 14:34, dulhaver via Ansible Project < ansible-project@googlegroups.com> wrote:
> I want to check for existence of a folder and also the right owner, group > and mode. > When any of the conditions (exists, owner=postgres, group=postgres, > mode=0755) does not meet requirements I want to stop and be notified of the > reason. > What are you trying to do at a high level? While you can use ansible as a glorified shell wrapper or reporting tool, but its intended purpose is configuration management. So in this case, what will you do if the condition DO meet the requirements? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLb6mqKGNdZP9AQb3nqDfMtCB5EtEMySMMyv4kP%2BjkmHoA%40mail.gmail.com.