Yes..

No errors email sending included run one and delegate_to localhost

Thanks

On Fri, Oct 22, 2021, 10:19 AM Stefan Hornburg (Racke) <[email protected]>
wrote:

> On 22/10/2021 16:09, Raj wrote:
> > Hi, VGM
> >
> > my playbook call roles  ssl scan  ( final part is email to send once)
> but it is sending 100 emails
>
> Did you ever check the indentation on your task sending email as advised?
>
> delegate_to should really work.
>
> Regards
>
>              Racke
>
> >
> > ---
> > - hosts: "{{ web }}"
> >   gather_facts: yes
> >   roles:
> >     - SSL_scan
> >
> > On Thursday, October 14, 2021 at 11:09:29 AM UTC-4 [email protected]
> wrote:
> >
> >     So, post that playbook
> >
> >     On Thu, 14 Oct 2021 at 17:03, Raja Natte <[email protected]> wrote:
> >
> >         Hi..
> >
> >
> >         Yes it is running in same playbook.
> >
> >         On Thu, Oct 14, 2021, 10:21 AM Dick Visser <[email protected]>
> wrote:
> >
> >             This is just the one mail task.
> >             It must be part of a playbook, where other things happen as
> well, and which will reveal the cause.
> >
> >             Also, you say "I am trying to send one email to team after
> job is successfully completed".
> >             I guess this "job" is the running of the playbook?
> >
> >
> >
> >
> >             On Thu, 14 Oct 2021 at 15:12, Raj <[email protected]> wrote:
> >
> >
> >                 Hi Racke,
> >
> >                 This is my code
> >
> >                 - name: Sending email to about SSL scan
> >                   mail:
> >                     host: xxxxx
> >                     port: 25
> >                     subject: xxxx
> >                     body:  xxxx
> >                     from: xxx
> >                     to:
> >                    # - xxxx
> >                     - xxxx
> >                   delegate_to: localhost
> >                   run_once: true
> >                 On Thursday, October 14, 2021 at 1:28:05 AM UTC-4
> [email protected] 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 [email protected]
> <mailto:[email protected]>.
> >                     > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b69b5eb1-7de3-4bce-80fd-2ca824fd07a0n%40googlegroups.com
> <
> https://groups.google.com/d/msgid/ansible-project/b69b5eb1-7de3-4bce-80fd-2ca824fd07a0n%40googlegroups.com>
> <
> https://groups.google.com/d/msgid/ansible-project/b69b5eb1-7de3-4bce-80fd-2ca824fd07a0n%40googlegroups.com?utm_medium=email&utm_source=footer
> <
> https://groups.google.com/d/msgid/ansible-project/b69b5eb1-7de3-4bce-80fd-2ca824fd07a0n%40googlegroups.com?utm_medium=email&utm_source=footer
> >>.
> >
> >
> >                     --
> >                     Ecommerce and Linux consulting + Perl and web
> application programming.
> >                     Debian and Sympa administration.
> >
> >                 --
> >                 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 [email protected].
> >                 To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f662886f-2a63-4988-a2b7-e15a4dfbfd16n%40googlegroups.com
> <
> https://groups.google.com/d/msgid/ansible-project/f662886f-2a63-4988-a2b7-e15a4dfbfd16n%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
> >
> >
> >
> >             --
> >             Dick Visser
> >             Trust & Identity Service Operations Manager
> >             GÉANT
> >             --
> >             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 [email protected].
> >             To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNz4ToNKCBngPbHOtB4%3D%3DHbFvx%3DTCJ6%3D4CL-kSrgvrDUA%40mail.gmail.com
> <
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNz4ToNKCBngPbHOtB4%3D%3DHbFvx%3DTCJ6%3D4CL-kSrgvrDUA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
> >
> >         --
> >         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 [email protected].
> >
> >         To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2BuTAOgXB1y_ATqNWBtRXxNyVuysaVA8gBp3Scx8cJKFAR-nBA%40mail.gmail.com
> <
> https://groups.google.com/d/msgid/ansible-project/CA%2BuTAOgXB1y_ATqNWBtRXxNyVuysaVA8gBp3Scx8cJKFAR-nBA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
> >
> >
> >
> >     --
> >     Dick Visser
> >     Trust & Identity Service Operations Manager
> >     GÉANT
> >
> > --
> > 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 [email protected] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/5442881b-a03f-4997-aa38-bbf4a8d623den%40googlegroups.com
> <
> https://groups.google.com/d/msgid/ansible-project/5442881b-a03f-4997-aa38-bbf4a8d623den%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration.
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/3113930b-5d0a-d327-99a1-9f8dfea5c289%40linuxia.de
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BuTAOikhJb-gPDzXprM4-_kdY%2BQB5%2B0nhoomtaOF9c6EJHYFg%40mail.gmail.com.

Reply via email to