An error occurred while loading the file. Please try again.
-
smy authoredUnverified53f8871a
- name: Copy the templates
become: yes
copy: src=files/{{item}} dest=/tmp/{{item}}
with_items:
- cassandra.cql
- pageMgmt.csv
- pageSection.csv
- content_service.cql
tags:
- always
- name: Run the cassandra.cql command
become: yes
command: "cqlsh -f /tmp/cassandra.cql"
ignore_errors: yes
tags:
- cql
- name: Run the pageMgmt.csv command
become: yes
command: cqlsh -e "COPY sunbird.page_management(id, appmap,createdby ,createddate ,name ,organisationid ,portalmap ,updatedby ,updateddate ) FROM '/tmp/pageMgmt.csv'"
ignore_errors: yes
tags:
- pagemanagement
- name: Run the pageSection.csv file
become: yes
command: cqlsh -e "COPY sunbird.page_section(id, alt,createdby ,createddate ,description ,display ,imgurl ,name,searchquery , sectiondatatype ,status , updatedby ,updateddate) FROM '/tmp/pageSection.csv'"
ignore_errors: yes
tags:
- pagesection
- name: Run the content_service.cql file
become: yes
command: "cqlsh -f /tmp/content_service.cql"
ignore_errors: yes
tags:
- content_service
- shell: "echo \"$sunbird_cassandra_host\""
environment:
sunbird_cassandra_host: "{{ groups['cassandra'][0] }}"
sunbird_cassandra_port: 9042
- name: download
become: yes
command: wget https://github.com/project-sunbird/sunbird-utils/releases/download/R1.5/cassandra-migration-0.0.1-SNAPSHOT-jar-with-dependencies.jar
args:
chdir: /tmp
- name: Run the application
shell: nohup java -cp "cassandra-migration-0.0.1-SNAPSHOT-jar-with-dependencies.jar" com.contrastsecurity.cassandra.migration.utils.MigrationScriptEntryPoint &
args:
chdir: /tmp