win_msg – Sends a message to logged in users on Windows hosts¶
Parameters¶
Notes¶
Note
This module must run on a windows host, so ensure your play targets windows hosts, or delegates to a windows host.
Messages are only sent to the local host where the module is run.
The module does not support sending to users listed in a file.
Setting wait to
yes
can result in long run times on systems with many logged in users.
See Also¶
See also
- win_say – Text to speech module for Windows to speak messages and optionally play sounds
The official documentation on the win_say module.
- win_toast – Sends Toast windows notification to logged in users on Windows 10 or later hosts
The official documentation on the win_toast module.
Examples¶
- name: Warn logged in users of impending upgrade
win_msg:
display_seconds: 60
msg: Automated upgrade about to start. Please save your work and log off before {{ deployment_start_time }}
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Jon Hawkesworth (@jhawkesworth)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.