[CORD-2497] add playbook to start cassandra db from hss_db service
Change-Id: I8435d46753ce27bafec4f5fcd6c1bb885218bdec
diff --git a/xos/synchronizer/steps/hssdbserviceinstance_playbook.yaml b/xos/synchronizer/steps/hssdbserviceinstance_playbook.yaml
index 35148b5..e57b6b9 100644
--- a/xos/synchronizer/steps/hssdbserviceinstance_playbook.yaml
+++ b/xos/synchronizer/steps/hssdbserviceinstance_playbook.yaml
@@ -12,12 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
----
- hosts: {{ instance_name }}
gather_facts: False
connection: ssh
- user: ubuntu
- sudo: yes
- tasks:
+ remote_user: ubuntu
+ become: yes
+ become_user: root
+ become_method: sudo
vars:
+ - config_file_path: /etc/cassandra
+ - db_ip: {{ db_ip }}
+ roles:
+ - setup_cassandra_db