ansible/ansible — pull request #368 by bradobro (2012-05-11 18:39:35+00:00)
Title: sshkey module revised

Michael,

I've revised my sshkey module per your advice, though later than promised.

Done: took out OOP.
Done: renamed param: ensure -> state

Notice: I haven't settled on a prettier way to include the key. Looking for advice on that because I know variable includes was under discussion. Not sure what best practices seem to you. IMHO, I think it would be nice to let people use the ugly way (literal string key) if they want, but I'm not militant about that.

Notice: The OOP is gone, but I did put param reading in a function. I tried to keep it simple, but wanted to find a non-dense way to leverage structured exception handling.