We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2f66f commit 5557dd4Copy full SHA for 5557dd4
files/cqlsh
tasks/configure.yml
@@ -117,8 +117,8 @@
117
mode: 0755
118
119
- name: create a handy cqlsh in path
120
- copy:
121
- src: cqlsh
+ template:
+ src: cqlsh.j2
122
dest: '{{ cassandra_shortcut_path }}/cqlsh'
123
owner: '{{ cassandra_user }}'
124
group: '{{ cassandra_group }}'
templates/cqlsh.j2
@@ -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