Add check_mode support to authorized_key. #7300

Signed-off-by: Hector Acosta <hector.acosta@gmail.com>