The mail module apparently doesn't check its parameters. For example "from" is going to be ignored, as the correct parameter is "sender". Please double check your indentation. "run_once" should be working.
> On Thursday, October 14, 2021 at 1:28:05 AM UTC-4
ra...@linuxia.de wrote:
>
> On 13/10/2021 22:13, Raj wrote:
> > Hi All,
> >
> > I am trying to send one email to team after job is successfully completed. Issue is playbook sending (if inventory have 100 servers ). It is sending 100 emails.
> >
> > I tried in my code: delegate_to: localhost and run_once: true it doesn't help please provide your inputs it really helpful .
>
> That should work. Please provide your code.
>
> Regards
>
> Racke
>
> >
> > TIA
> > Raja
> > --
> > 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-proje...@googlegroups.com <mailto:
ansible-proje...@googlegroups.com>.