* Use inventory.get_host instead of direct access to inventory.hosts. Fixes #32152 * Prevent potential side effect, by using self._inventory.localhost directly instead of get_host