Addresses https://github.com/ansible/ansible-modules-core/issues/1715
Also adds an integration test for authorized_key for future validation. Fixes #6700