blob: 59aa3da16e19c5566b8f5b947e014e89a17658c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
- hosts: localhost
connection: local
gather_facts: no
vars:
users:
alice:
name: Alice Appleworth
telephone: 123-456-7890
bob:
name: Bob Bananarama
telephone: 987-654-3210
tasks:
- name: Print phone records
debug: msg="User {{ item.key }} is {{ item.value.name }} ({{ item.value.telephone }})"
with_dict: users
|