New in version 2.4.
parameter | required | default | choices | comments |
---|---|---|---|---|
expire | no | 45 | How long in seconds before the notification expires. | |
group | no | Powershell | Which notification group to add the notification to. | |
msg | no | Hello, World! | The message to appear inside the notification. May include \n to format the message to appear within the Action Center. | |
popup | no | True |
| If false, the notification will not pop up and will only appear in the Action Center. |
tag | no | Ansible | The tag to add to the notification. | |
title | no | Notification HH:mm | The notification title, which appears in the pop up.. |
- name: Warn logged in users of impending upgrade (note use of async to stop the module from waiting until notification expires). win_toast: expire: 60 title: System Upgrade Notification msg: Automated upgrade about to start. Please save your work and log off before {{ deployment_start_time }} async: 60 poll: 0
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
toast_sent | Whether the module was able to send a toast notification or not. | allways | boolean | False |
expire_at_utc | Calculated utc date time when the notification expires. | allways | string | 07 July 2017 04:50:54 |
no_toast_sent_reason | Text containing the reason why a notification was not sent. | when no logged in users are detected | string | No logged in users to notify |
time_taken | How long the module took to run on the remote windows host in seconds. | allways | float | 0.3706632 |
sent_localtime | local date time when the notification was sent. | allways | string | 07 July 2017 05:45:54 |
Note
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/win_toast_module.html