blob: b6e585fa4ce854a54a6057c2e7d4fc629cd87824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
- 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 }}"
- name: Test ssh to nodes via node address
command: /bin/true
delegate_to: "{{ item }}"
with_items: "{{ gluster_cluster_hosts }}"
|