/ansible_mysql_rds_playbook

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

ansible_mysql_rds_playbook

This is a playbook which can be used as an example to create mysql master,read replica and upgrade the read replica on RDS.

Remember..!!

  • 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 pass supersecret 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.