I am using Ansible 2.4.2. I am not able to Switch AWS profile with Ansible, it cached my profile information. Even I deleted .aws/credentials file, its still working smoothly.
Till now I already tried those solutions
ansible-playbook --flush-cache
gather facts: false.