How to maintain my-passwords.yml up to date?

I’m going to upgrade our Open edX instance from ironwood to juniper.
I’ve realized that there are some modifications to the random password template. (here)
is there any approach to automatically update our previous file, to have an augmented one with the new randomly generated passwords?