Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created January 7, 2014 22:54
Show Gist options
  • 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 [email protected]
password=secret
[email protected]
msg="New password is {{ password.stdout }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment