On 22/10/2021 16:09, Raj wrote:
Hi, VGMmy 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 dick....@geant.org wrote: So, post that playbook On Thu, 14 Oct 2021 at 17:03, Raja Natte <graj...@gmail.com> wrote: Hi.. Yes it is running in same playbook. On Thu, Oct 14, 2021, 10:21 AM Dick Visser <dick....@geant.org> 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 <graj...@gmail.com> 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 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>. > 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 ansible-proje...@googlegroups.com. 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 VisserTrust & 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 ansible-proje...@googlegroups.com. 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 ansible-proje...@googlegroups.com. 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 VisserTrust & 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 ansible-project+unsubscr...@googlegroups.com <mailto:ansible-project+unsubscr...@googlegroups.com>. 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3113930b-5d0a-d327-99a1-9f8dfea5c289%40linuxia.de.
OpenPGP_signature
Description: OpenPGP digital signature