From d9f0703b4575012db75f433f11d56f0ac2ede61e Mon Sep 17 00:00:00 2001 From: Joseph Jacobs Date: Tue, 10 Dec 2019 06:29:00 -0800 Subject: [PATCH] Update generator.py documentation (#65573) --- lib/ansible/plugins/inventory/generator.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ansible/plugins/inventory/generator.py b/lib/ansible/plugins/inventory/generator.py index 1af3dfa9015..242419faca4 100644 --- a/lib/ansible/plugins/inventory/generator.py +++ b/lib/ansible/plugins/inventory/generator.py @@ -38,18 +38,20 @@ DOCUMENTATION = ''' EXAMPLES = ''' # inventory.config file in YAML format + # remember to enable this inventory plugin in the ansible.cfg before using + # View the output using `ansible-inventory -i inventory.config --list` plugin: generator strict: False hosts: - name: "{{ operation }}-{{ application }}-{{ environment }}-runner" + name: "{{ operation }}_{{ application }}_{{ environment }}_runner" parents: - - name: "{{ operation }}-{{ application }}-{{ environment }}" + - name: "{{ operation }}_{{ application }}_{{ environment }}" parents: - - name: "{{ operation }}-{{ application }}" + - name: "{{ operation }}_{{ application }}" parents: - name: "{{ operation }}" - name: "{{ application }}" - - name: "{{ application }}-{{ environment }}" + - name: "{{ application }}_{{ environment }}" parents: - name: "{{ application }}" vars: