Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. - name: iterate over hosts
  2. debug: msg="{{ hostvars[item]['ansible_bond1.2108']['ipv4']['address'] }}"
  3. with_items: groups.storages
  4. ignore_errors: true
  5. tags: gz
  6.  
  7.  
  8. ________________________________________
  9. < TASK: swift-proxy | iterate over hosts >
  10. ----------------------------------------
  11. \ ^__^
  12. \ (oo)\_______
  13. (__)\ )\/\
  14. ||----w |
  15. || ||
  16.  
  17.  
  18. <ceph001> ESTABLISH CONNECTION FOR USER: root
  19. ok: [ceph001] => (item=ceph002) => {
  20. "item": "ceph002",
  21. "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
  22. }
  23. <ceph001> ESTABLISH CONNECTION FOR USER: root
  24. ok: [ceph001] => (item=ceph003) => {
  25. "item": "ceph003",
  26. "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
  27. }
  28. <ceph001> ESTABLISH CONNECTION FOR USER: root
  29. ok: [ceph001] => (item=ceph004) => {
  30. "item": "ceph004",
  31. "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
  32. }
  33. <ceph001> ESTABLISH CONNECTION FOR USER: root
  34. ok: [ceph001] => (item=ceph005) => {
  35. "item": "ceph005",
  36. "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
  37. }
  38. <ceph001> ESTABLISH CONNECTION FOR USER: root
  39. ok: [ceph001] => (item=ceph006) => {
  40. "item": "ceph006",
  41. "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
  42. }
  43. ____________
  44. < PLAY RECAP >
  45. ------------
  46. \ ^__^
  47. \ (oo)\_______
  48. (__)\ )\/\
  49. ||----w |
  50. || ||
  51.  
  52.  
  53. ceph001 : ok=2 changed=0 unreachable=0 failed=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement