<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Use Static and Dynamic Inventories in Ansible &#8211; Part 4	</title>
	<atom:link href="https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Tue, 09 Mar 2021 19:55:04 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: derek		</title>
		<link>https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1448152</link>

		<dc:creator><![CDATA[derek]]></dc:creator>
		<pubDate>Tue, 09 Mar 2021 19:55:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=34811#comment-1448152</guid>

					<description><![CDATA[I love tecmint and this is another worthwhile link with an explanation of network inventory for ansible using JSON (i.e. an ex python step).

Please change &quot;&lt;strong&gt;hostvars&lt;/strong&gt;&quot; to &quot;&lt;strong&gt;vars&lt;/strong&gt;&quot; as my version of ansible issues a warning.

[derek@socorro JinaTemplates]$ ansible -i network.json --list-hosts all
[WARNING]: Skipping unexpected key (hostvars) in group (_meta), only &quot;vars&quot;, &quot;children&quot; and &quot;hosts&quot; are valid
  hosts (8):
    eng-pe2
    eng-pe1
    spn-2
]]></description>
			<content:encoded><![CDATA[<p>I love tecmint and this is another worthwhile link with an explanation of network inventory for ansible using JSON (i.e. an ex python step).</p>
<p>Please change &#8220;<strong>hostvars</strong>&#8221; to &#8220;<strong>vars</strong>&#8221; as my version of ansible issues a warning.</p>
<p>[derek@socorro JinaTemplates]$ ansible -i network.json &#8211;list-hosts all<br />
[WARNING]: Skipping unexpected key (hostvars) in group (_meta), only &#8220;vars&#8221;, &#8220;children&#8221; and &#8220;hosts&#8221; are valid<br />
  hosts (8):<br />
    eng-pe2<br />
    eng-pe1<br />
    spn-2</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1323479</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Thu, 26 Mar 2020 06:30:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=34811#comment-1323479</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1323478&quot;&gt;Amedix&lt;/a&gt;.

@Amedix,

Thanks for the suggestion, corrected in the article...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1323478">Amedix</a>.</p>
<p>@Amedix,</p>
<p>Thanks for the suggestion, corrected in the article&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Amedix		</title>
		<link>https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1323478</link>

		<dc:creator><![CDATA[Amedix]]></dc:creator>
		<pubDate>Thu, 26 Mar 2020 06:24:49 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=34811#comment-1323478</guid>

					<description><![CDATA[Hi,

Good Ansible articles!

May I suggest a syntax correction?

In the &quot;&lt;strong&gt;Dynamic Host Inventory File&lt;/strong&gt;&quot;  section, in the fourth line, change :

A dynamic inventory is a shell script written in Python, PHP or any other programming language.

by 

A dynamic inventory is a script written in Python, PHP or any other programming language.


Thanks]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Good Ansible articles!</p>
<p>May I suggest a syntax correction?</p>
<p>In the &#8220;<strong>Dynamic Host Inventory File</strong>&#8221;  section, in the fourth line, change :</p>
<p>A dynamic inventory is a shell script written in Python, PHP or any other programming language.</p>
<p>by </p>
<p>A dynamic inventory is a script written in Python, PHP or any other programming language.</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Matt		</title>
		<link>https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1320221</link>

		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Fri, 06 Mar 2020 08:37:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=34811#comment-1320221</guid>

					<description><![CDATA[Hi James,

After a dynamic inventory script successfully (using &lt;strong&gt;./somescript --list&lt;/strong&gt;) how do you use the JSON response as your hosts to execute a playbook?]]></description>
			<content:encoded><![CDATA[<p>Hi James,</p>
<p>After a dynamic inventory script successfully (using <strong>./somescript &#8211;list</strong>) how do you use the JSON response as your hosts to execute a playbook?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: QA		</title>
		<link>https://www.tecmint.com/use-static-and-dynamic-inventory-in-ansible/comment-page-1/#comment-1303370</link>

		<dc:creator><![CDATA[QA]]></dc:creator>
		<pubDate>Sat, 07 Dec 2019 08:01:14 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=34811#comment-1303370</guid>

					<description><![CDATA[Yes, but I want to know the content of your &lt;strong&gt;Dynamic Inventory Script&lt;/strong&gt; file, I searched a lot and I’m just a low-level person. I want JSON results like you, please let me know.
I would be happy to be able to get your contact]]></description>
			<content:encoded><![CDATA[<p>Yes, but I want to know the content of your <strong>Dynamic Inventory Script</strong> file, I searched a lot and I’m just a low-level person. I want JSON results like you, please let me know.<br />
I would be happy to be able to get your contact</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
