Similar to the preceding module, we have the wlan_profile module, which collects all saved credentials for the Wi-Fi from the target system. We can use the module as follows:
We can see the name of the network in the <name> tag, and the password in the <keyMaterial> tag in the preceding screenshot.