mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
376 B
YAML
16 lines
376 B
YAML
10 years ago
|
- 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
|