summaryrefslogtreecommitdiffstats
path: root/vagrant/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/ansible')
-rw-r--r--vagrant/ansible/roles/node.test/tasks/main.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/vagrant/ansible/roles/node.test/tasks/main.yml b/vagrant/ansible/roles/node.test/tasks/main.yml
index 962b368..2381b56 100644
--- a/vagrant/ansible/roles/node.test/tasks/main.yml
+++ b/vagrant/ansible/roles/node.test/tasks/main.yml
@@ -1,2 +1,10 @@
-- name: Test host reachability
- command: hostname
+- name: read list of nodes from file cluster_nodes.yml
+ include_vars:
+ file: cluster-vars.yml
+
+- name: Test node reachability
+ # note: `net_ping` module does not work unless we put
+ # `ansible_network_os` into the inventory...
+ command: "ping -c 1 {{ item }}"
+ loop:
+ "{{ gluster_cluster_hosts }}"