Skip to content

Instantly share code, notes, and snippets.

@mxey
Created March 8, 2014 10:25
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 mxey/9428414 to your computer and use it in GitHub Desktop.
Save mxey/9428414 to your computer and use it in GitHub Desktop.
- hosts: all
tasks:
- name: create monitoring user
user: name=monitoring system=yes
- name: generate SSH key for Icinga
user:
name=icinga
generate_ssh_key=yes
register: icinga_ssh_key
delegate_to: monitoring.mxey.net
- name: deploy SSH key for monitoring
authorized_key: user=monitoring key="{{icinga_ssh_key.ssh_public_key}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment