Add yamllint for plugin docs and fix issues.

This commit is contained in:
Matt Clay 2018-05-23 05:49:30 -07:00
parent 0b7932db30
commit 15b6837daf
13 changed files with 50 additions and 19 deletions

View file

@ -19,12 +19,6 @@ DOCUMENTATION = """
"""
EXAMPLES = """
tasks:
- name: show dictionary
debug: msg="{{item.key}}: {{item.value}}"
with_dict: {a: 1, b: 2, c: 3}
# with predefined vars
vars:
users:
alice:
@ -34,10 +28,16 @@ vars:
name: Bob Bananarama
telephone: 987-654-3210
tasks:
# with predefined vars
- name: Print phone records
debug:
msg: "User {{ item.key }} is {{ item.value.name }} ({{ item.value.telephone }})"
loop: "{{ lookup('dict', users) }}"
# with inline dictionary
- name: show dictionary
debug:
msg: "{{item.key}}: {{item.value}}"
with_dict: {a: 1, b: 2, c: 3}
"""
RETURN = """