From edac065bd2ad3c613413c125cad3eee45e5f0835 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 11 Aug 2020 02:01:26 +0530 Subject: [PATCH] toml: Clarify about inventory examples (#71180) Add a note in toml inventory plugin about three different inventory examples. Fixes: #67003 Signed-off-by: Abhijeet Kasurde --- lib/ansible/plugins/inventory/toml.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/inventory/toml.py b/lib/ansible/plugins/inventory/toml.py index 5389bf15197..ca4ca036eb6 100644 --- a/lib/ansible/plugins/inventory/toml.py +++ b/lib/ansible/plugins/inventory/toml.py @@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -DOCUMENTATION = ''' +DOCUMENTATION = r''' inventory: toml version_added: "2.8" short_description: Uses a specific TOML file as an inventory source. @@ -15,7 +15,8 @@ DOCUMENTATION = ''' - Requires the 'toml' python library ''' -EXAMPLES = ''' +EXAMPLES = r''' +# Following are examples of 3 different inventories in TOML format example1: | [all.vars] has_java = false