blob: 5d0fc7a5d0bf375cc7064527d76d4aa12ee62d90 [file] [log] [blame]
---
- include: configuration/update_cache.yml
- hosts: "{{ hosts }}"
roles:
- apigee-opdk-setup-default-settings
tasks:
- name: Capture nodetool status
shell: "{{ nodetool }} -h 127.0.0.1 status"
register: status
tags:
- status
- name: Report nodetool status
debug:
var: status.stdout_lines
tags:
- status
- name: Capture nodetool ring
shell: "{{ nodetool }} -h 127.0.0.1 ring"
register: ring
tags:
- ring
- name: Report nodetool ring status
debug:
var: ring.stdout_lines
tags:
- ring
- name: Prepare file for show schema
copy:
content: 'echo "show schema;"'
dest: '/tmp/get_schema.cql'
tags:
- schema
- name: Show cassandra schema
shell: "{{ cassandra_cli }} -h 127.0.0.1 -f /tmp/get_schema.sql"
tags:
- schema