2 ms·
There are two states that we're talking about. * Ensure that the following key is present. * Ensure that only the following keys are present. You can accompl
by Spivak 10y ago
There are two states that we're talking about.
* Ensure that the following key is present.
* Ensure that only the following keys are present.
You can accomplish the second one with the 'exclusive' flag.
http://docs.ansible.com/ansible/authorized_key_module.html http://docs.ansible.com/ansible/authorized_key_module.html
- falcolas 10y agoThere's a third state as well: absent. Move keys from one file to another, and they go from allowed to denyed. That said, I do like the "exclusive" tag too, I just tend to have a few one-off keys laying around as technical debt.