The purpose of this change is having a mechanism to refresh the
ceph-ansible group_vars/ when a Ceph related service, that defines a
specific set of variables, is included in the overcloud.
For this reason, this patch:
1. Adds the "prepare" tasks (including tripleo-ceph-work-dir) at the
beginning of Step2. By doing this we can make sure that all the
variables needed by ceph-ansible are properly collected at Step1,
and persisted (in group_vars/*) at Step2, before the ceph-ansible
playbook execution.
This approach is valid for all the services that define additional
ConfigOverrides variables
2. Removes the "prepare" (including tripleo-ceph-work-dir) in the rgw
service: having the "prepare" tasks included "per role" creates the
risk of executing it multiple times.
For example, including "prepare" in clients and rgw results in three
execution of the same thing!
Adding it at the beginning of Step 2 ensures that it's executed at
least two times.
Change-Id: If81477ad2c6048b7103810e519083a0870897fa3