Skip to content

Commit 5557dd4

Browse files
authored
Make cqlsh use correct IP, not 127.0.0.1. (#9)
1 parent 3d2f66f commit 5557dd4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

files/cqlsh

Lines changed: 0 additions & 1 deletion
This file was deleted.

tasks/configure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
mode: 0755
118118

119119
- name: create a handy cqlsh in path
120-
copy:
121-
src: cqlsh
120+
template:
121+
src: cqlsh.j2
122122
dest: '{{ cassandra_shortcut_path }}/cqlsh'
123123
owner: '{{ cassandra_user }}'
124124
group: '{{ cassandra_group }}'

templates/cqlsh.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
/opt/cassandra/bin/cqlsh {{ hostvars[ansible_hostname]["ansible_" + cassandra_network_interface]["ipv4"]["address"] }} "$@"

0 commit comments

Comments
 (0)