There are minor tweaks to the authorized_key module. Pull request should come soon. Main change is mcodd suggested getting rid of “with” clauses so it runs under Python 2.4. Thanks, Matt!
There are a couple minor behaviors I’d like feedback on.
- Should the module put “#Edited by Ansible” or something like that atop the file? Currently it does, mostly from my latent Puppet habbits.
- Should the module add that comment even if a key state=absent? Currently it does.
On one hand, idempotency would suggest don’t add the comment, or only add it if there’s a change. OTOH, the fact that a configuration management system may alter it is important for human editors to know on machines that have to support human logins.
Opinions?