Good Morning!
Today Let me share about upgrading or downgrading ios using ansible.
I follow rule for ios upgrade guide from cisco https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/b_CSR1000v_Configuration_Guide/b_CSR1000v_Configuration_Guide_chapter_01001.html and add some intelligence twisted code to each four roles.
Hope you like it. Please check this out 😉 and enjoy! https://github.com/lillianphyo/csr1000v_upgrade