Execute one email/command per play, no matter how many servers
16 views
Skip to first unread message
John Harmon
unread,
Oct 2, 2017, 5:42:05 PM10/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I have a play that is setup to email me once complete with some of the results....the problem is that I get an email for every server I run the play against. For instance, against 1 server I get 1 email. Against 3 servers I receive 3 identical emails.
How can I get a particular task to just execute once at the end of a play no matter how many servers I am running the play against?
John Harmon
unread,
Oct 2, 2017, 5:48:19 PM10/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message