Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created January 7, 2014 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrisch/8308441 to your computer and use it in GitHub Desktop.
Save jrisch/8308441 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- name: Test
local_action: shell /usr/local/bin/pwgen -s 14 1
register: password
notify:
- Testnotify
handlers:
- name: Testnotify
# send a message to a user
local_action: jabber user=moo@example.com
password=secret
to=receiver@example.com
msg="New password is {{ password.stdout }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment