diff options
Diffstat (limited to 'docs/docsite/rst/tips_tricks/yaml/tip_group_by.yaml')
-rw-r--r-- | docs/docsite/rst/tips_tricks/yaml/tip_group_by.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/docsite/rst/tips_tricks/yaml/tip_group_by.yaml b/docs/docsite/rst/tips_tricks/yaml/tip_group_by.yaml new file mode 100644 index 0000000..4c39a63 --- /dev/null +++ b/docs/docsite/rst/tips_tricks/yaml/tip_group_by.yaml @@ -0,0 +1,6 @@ +- name: talk to all hosts just so we can learn about them + hosts: all + tasks: + - name: Classify hosts depending on their OS distribution + group_by: + key: os_{{ ansible_facts['distribution'] }}
\ No newline at end of file |