�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d d
l Z d d l
m Z m Z d � Z
d
� Z e d k r� e � n d
S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont stableinterfacet statust communityt supported_bys�
---
module: say
version_added: "1.2"
short_description: Makes a computer to speak.
description:
- makes a computer speak! Amuse your friends, annoy your coworkers!
notes:
- In 2.5, this module has been renamed from C(osx_say) to M(say).
- If you like this module, you may also be interested in the osx_say callback plugin.
- A list of available voices, with language, can be found by running C(say -v ?) on a OSX host and C(espeak --voices) on a Linux host.
options:
msg:
description:
What to say
required: true
voice:
description:
What voice to use
required: false
requirements: [ say or espeak or espeak-ng ]
author:
- "Ansible Core Team"
- "Michael DeHaan (@mpdehaan)"
sc
- say:
msg: '{{ inventory_hostname }} is all done'
voice: Zarvox
delegate_to: localhost
N( t
AnsibleModulet get_platformc C` s? | | g } | r( | j d | f � n | j | d t �d S( Ns -vt check_rc( t extendt run_commandt True( t modulet
executablet msgt voicet cmd( ( sI /usr/lib/python2.7/site-packages/ansible/modules/notification/_osx_say.pyt say5 s c C` s t d t d t d t � d t d t � � d t � } | j d } | j d } d
} t � d k rn d } n xD | D] } | j | � } | ru Pqu qu W| j d d
d j | � � | j
r� | j d | d t � n t | | | | � | j d | d t � d S( Nt
argument_specR t requiredR t supports_check_modeR t espeaks espeak-ngt Darwins Unable to find either %ss , t changed( s sayR s espeak-ng(
R t dictR
t Falset paramsR t Nonet get_bin_patht fail_jsont joint
check_modet exit_jsonR ( R R R t possiblest possibleR ( ( sI /usr/lib/python2.7/site-packages/ansible/modules/notification/_osx_say.pyt main<