Organizing Playbooks

Hello,

We are adopting ansible and as a proof of concept I converted some tasks to ansible playbooks. For example, we are using Fisheye tool for code reviews and I created playbooks for upgrading it. I would like to have some feedback about them.

We have two instance of that tool - one for production and one for qa purposes such as testing upgrades. The upgrade procedure is

  1. Export the data from the production instance
  2. Import it in the qa instance
  3. Upgrade the qa instance to a new version of the tool
  4. Test the new version in qa with the production data
  5. If tests are syccessful upgrade the production instance to the new version

While 4) involves mainly manual testing, the other points can be automated and I created two playbooks for them. The first one covers 1) and 2) - syncing qa instance with production data. I export production data in a compressed file with a command provided by the tool, then I move the file from the production box to the qa box and finally I import it to the qa instance using another command that comes from the tool:

fisheye-sync/site.yml