Created
March 8, 2014 10:25
-
-
Save mxey/9428414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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