Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: iterate over hosts
- debug: msg="{{ hostvars[item]['ansible_bond1.2108']['ipv4']['address'] }}"
- with_items: groups.storages
- ignore_errors: true
- tags: gz
- ________________________________________
- < TASK: swift-proxy | iterate over hosts >
- ----------------------------------------
- \ ^__^
- \ (oo)\_______
- (__)\ )\/\
- ||----w |
- || ||
- <ceph001> ESTABLISH CONNECTION FOR USER: root
- ok: [ceph001] => (item=ceph002) => {
- "item": "ceph002",
- "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
- }
- <ceph001> ESTABLISH CONNECTION FOR USER: root
- ok: [ceph001] => (item=ceph003) => {
- "item": "ceph003",
- "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
- }
- <ceph001> ESTABLISH CONNECTION FOR USER: root
- ok: [ceph001] => (item=ceph004) => {
- "item": "ceph004",
- "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
- }
- <ceph001> ESTABLISH CONNECTION FOR USER: root
- ok: [ceph001] => (item=ceph005) => {
- "item": "ceph005",
- "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
- }
- <ceph001> ESTABLISH CONNECTION FOR USER: root
- ok: [ceph001] => (item=ceph006) => {
- "item": "ceph006",
- "msg": "{{hostvars[item]['ansible_bond1.2108']['ipv4']['address']}}"
- }
- ____________
- < PLAY RECAP >
- ------------
- \ ^__^
- \ (oo)\_______
- (__)\ )\/\
- ||----w |
- || ||
- ceph001 : ok=2 changed=0 unreachable=0 failed=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement