Semantic update of local address to private address and optimizations for slow connections.
diff --git a/tasks/keyspace.yml b/tasks/keyspace.yml index 71cc6a9..fed90be 100644 --- a/tasks/keyspace.yml +++ b/tasks/keyspace.yml
@@ -1,13 +1,13 @@ --- - name: Show system.schema_keyspaces before changes - shell: "{{ cqlsh }} -e 'select * from system.schema_keyspaces' {{ local_address }}" + shell: "{{ cqlsh }} -e 'select * from system.schema_keyspaces' {{ private_address }}" - name: Set consistency to TWO to prepare for replication factor update set_fact: consistency: "TWO" - name: Keyspace before modification - shell: "{{ cqlsh }} -e 'DESCRIBE KEYSPACE {{ keyspace }}' {{ local_address }} | grep -C4 'CREATE KEYSPACE {{ keyspace }}'" + shell: "{{ cqlsh }} -e 'DESCRIBE KEYSPACE {{ keyspace }}' {{ private_address }} | grep -C4 'CREATE KEYSPACE {{ keyspace }}'" - name: Construct CQL file template: @@ -15,10 +15,10 @@ dest: /tmp/replication_factor.cql - name: Execute replication factor update - shell: "{{ cqlsh }} -f /tmp/replication_factor.cql {{ local_address }} " + shell: "{{ cqlsh }} -f /tmp/replication_factor.cql {{ private_address }} " - name: Keyspace after modification - shell: "{{ cqlsh }} -e 'DESCRIBE KEYSPACE {{ keyspace }}' {{ local_address }} | grep -C4 'CREATE KEYSPACE {{ keyspace }}'" + shell: "{{ cqlsh }} -e 'DESCRIBE KEYSPACE {{ keyspace }}' {{ private_address }} | grep -C4 'CREATE KEYSPACE {{ keyspace }}'" - name: Show system.schema_keyspaces after changes - shell: "{{ cqlsh }} -e 'select * from system.schema_keyspaces' {{ local_address }}" + shell: "{{ cqlsh }} -e 'select * from system.schema_keyspaces' {{ private_address }}"