{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/659","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/659/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/659/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/659","id":91820706,"number":659,"title":"gluster_volume couldn't probe peer","user":{"login":"d3vil-st","id":2041449,"avatar_url":"https://avatars.githubusercontent.com/u/2041449?v=3","gravatar_id":"","url":"https://api.github.com/users/d3vil-st","html_url":"https://github.com/d3vil-st","followers_url":"https://api.github.com/users/d3vil-st/followers","following_url":"https://api.github.com/users/d3vil-st/following{/other_user}","gists_url":"https://api.github.com/users/d3vil-st/gists{/gist_id}","starred_url":"https://api.github.com/users/d3vil-st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3vil-st/subscriptions","organizations_url":"https://api.github.com/users/d3vil-st/orgs","repos_url":"https://api.github.com/users/d3vil-st/repos","events_url":"https://api.github.com/users/d3vil-st/events{/privacy}","received_events_url":"https://api.github.com/users/d3vil-st/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/P3","name":"P3","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-29T14:27:13Z","updated_at":"2016-02-17T17:07:04Z","closed_at":"2015-07-11T04:05:57Z","body":"I use ansible version 1.9.2 from ppa:ansible/ansible and gluster version 3.6.3.\r\nSo, when i create task like this:\r\n```yml\r\n- name: create gluster volume\r\n  gluster_volume: state=present name=repl1 brick=/mnt/gluster_bricks/repl1 rebalance=yes replicas=2 cluster=\"{{ groups['gluster']|join(',') }}\"\r\n  run_once: true\r\n```\r\nWhen this task runs, I get error:\r\n```\r\nTASK: [gluster | create gluster volume] ***************************************\r\n<192.168.7.89> ESTABLISH CONNECTION FOR USER: root\r\n<192.168.7.89> REMOTE_MODULE gluster_volume state=present name=repl1 brick=/mnt/gluster_bricks/repl1 rebalance=yes replicas=2 cluster=192.168.7.89,192.168.7.84\r\n<192.168.7.89> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/root/.ansible/cp/ansible-ssh-%h-%p-%r\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 192.168.7.89 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1435586293.82-83471934034045 && echo $HOME/.ansible/tmp/ansible-tmp-1435586293.82-83471934034045'\r\n<192.168.7.89> PUT /tmp/tmpfTQiQg TO /root/.ansible/tmp/ansible-tmp-1435586293.82-83471934034045/gluster_volume\r\n<192.168.7.89> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/root/.ansible/cp/ansible-ssh-%h-%p-%r\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 192.168.7.89 /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1435586293.82-83471934034045/gluster_volume; rm -rf /root/.ansible/tmp/ansible-tmp-1435586293.82-83471934034045/ >/dev/null 2>&1'\r\nfailed: [192.168.7.89] => {\"failed\": true}\r\nmsg: failed to probe peer 192.168.7.89\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n```\r\nMy inventory is:\r\n```\r\n[gluster]\r\n192.168.7.89\r\n192.168.7.84\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/185301430","html_url":"https://github.com/ansible/ansible-modules-extras/issues/659#issuecomment-185301430","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/659","id":185301430,"user":{"login":"violuke","id":6420347,"avatar_url":"https://avatars.githubusercontent.com/u/6420347?v=3","gravatar_id":"","url":"https://api.github.com/users/violuke","html_url":"https://github.com/violuke","followers_url":"https://api.github.com/users/violuke/followers","following_url":"https://api.github.com/users/violuke/following{/other_user}","gists_url":"https://api.github.com/users/violuke/gists{/gist_id}","starred_url":"https://api.github.com/users/violuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/violuke/subscriptions","organizations_url":"https://api.github.com/users/violuke/orgs","repos_url":"https://api.github.com/users/violuke/repos","events_url":"https://api.github.com/users/violuke/events{/privacy}","received_events_url":"https://api.github.com/users/violuke/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T17:07:04Z","updated_at":"2016-02-17T17:07:04Z","body":"roryirvine's solution with setting the host didn't work for me, but it did prompt me to try:\r\n```\r\nhost: \"{{ inventory_hostname }}\"\r\n```\r\nWhich did work, so thanks. Hopefully this helps someone else."}}