The rash can be due to fungal infection but pedal edema needs evaluation. Common causes of ankle swelling include traumatic Injury such as an ankle sprain or a fracture,gout (accumulation of uric acid crystals within the fluid of your ankle),ankle arthritis,infection (cellulitis or septic joint), problems with blood flow like DVT can impair normal circulation and lead to swelling around the ankles,pregnancy, obesity, and varicose veins.
Edema can be caused by a serious condition of the kidney, heart, liver or blood vessels as well.
So all these factors need evaluation.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.