Fix for https://github.com/ansible/ansible/issues/7330