Ansible API how to use "get_config" in Ansible 2.5.0

You don't use get_config, you use self.get_option('optoinname'), see
shipped plugins for how to define options inside the DOCUMENTATION=
variable for the config system to automatically recognize them.