Discussion:
[ansible-project] May I treat playbooks similar to database migrations?
Jan Koprowski
2015-07-15 08:06:50 UTC
Permalink
Hello,

I would like to start writing playbooks treating each playbook similar to *database
migration*.

Let say I'm releasing my roles/playbooks repository with version 1.0
In version 1.1 I would like to upgrade reviewboard to version 2.5 (from
1.5), glusterfs to version 3.6 (from 3.4) and introduce deduplication.

Is it a good idea to write playbooks like?
- 1_*upgrade_reviewboard_1.5_to_2.5.yml*
* - 2_upgrade_glusterfs_3.4_to_3.6.yml*
* - 3_turn_on_glusterfs_deduplication.yml*

Assuming that something will know how which playbooks should be run and
in which order is it a good direction to follow?

The idea behind that is to be able to share infrastructure with others as
repository.
Treat it as a product/software where people can upgrade to higher version.

Let say on each node we have deployed fact file returning version of
infrastructure so we can easily determine which version is current.

Regards,

Jan
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dc304b21-6b3e-4008-979a-3a827f9a57ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...