This is a playbook which can be used as an example to create mysql master,read replica and upgrade the read replica on RDS.
-
Running for the first time exclude the task 'upgrade' as it will immediately upgrade the read replica to the mentioned version, you can do so by executing
ansible-playbook -vvv rds.yml --skip-tags "upgrade"
-
This playbook has authentication information encrypted, so use this command while firing this playbook
ansible-playbook -vvv rds.yml --skip-tags "upgrade" --ask-vault-pass
Use the passsupersecret
to get the access :P -
The most imp part, copy the file under /hack dir to their respective locations to enable major upgrading of mysql which is by default disabled in rds module for ansible.
-
Don't forget to install Boto.