<?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: Ansible Notes of June 2024 Session	</title>
	<atom:link href="https://www.bestdevops.com/ansible-notes-of-june-2024-session/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Wed, 19 Jun 2024 15:30:27 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.1</generator>
	<item>
		<title>
		By: Prapasri		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1803</link>

		<dc:creator><![CDATA[Prapasri]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 15:30:27 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1803</guid>

					<description><![CDATA[What is Ansible?
#Ansible is an Open Source Software, an Automation Engine. This allows us to manage and control multiple servers from one central location and working via SSH Protocol for UNIX systems and winrm for Windows.
&#160;
Why Ansible?
#Very simple to set up, learn and use, Flexible

How Ansible works? Ansible Architecture?
#Human-readable scripts called command, playbooks to declare the desired state of a system. Ansible connects to local or remote servers via SSH and ensures that the system remains in that state.
Architecture : modules, plugins, inventories, playbooks, APIs
&#160;
How to install Ansbile
# install ansible , package, apache ,python, start service, verify version
&#160;
Component of ACS?
# Inventory,Playbook,Control node,Managed node,Module
&#160;
Ansible Adhoc
# uses the&#160;&lt;span&gt;/usr/bin/ansible&lt;/span&gt;&#160;command-line tool to automate a single task on one or more managed nodes
And execute a quick one-liner in ansible without writing a playbook

Ansible Modules
#Ansible modules are units of code that can control system resources or execute system commands.

Ansible Plugins
#Are pieces of code that extend core Ansible functionality.
&#160;
Ansible Configfile
#&#160;configuration file : ansible.cfg for configuring core functionality

Ansible Playbook
# List of task, use for deploy and in YAML format.
&#160;
Playbook Vars
# Uses variables to manage differences between systems. Defining them in a file, passing them at the command line, or registering the return value or values of a task as a new variable.

PlaybookTemplate
#You can create a template for a configuration file, then deploy that configuration file to multiple environments and supply the correct data (IP address, hostname, version) for each environment. You can also use templating in playbooks directly, by templating task names and more.

PlaybookHandlers
#Handlers in Ansible playbooks are used to run specific tasks only when a change occurs on a machine.
handlers:
&#160;- name: ReStarting a Apache Server
&#160;&#160;&#160;ansible.builtin.service:
&#160;&#160;&#160;&#160;&#160;name: apache2
&#160;&#160;&#160;&#160;&#160;state: restarted

Ansible galaxy
#Command to manage Ansible roles and collections.

Roles
#
Ansible Roles are expressed in YAML used to write configuration files. When a role is included in a task ,Ansible looks for a main.yml file&#160;:
Role/
  common/
     Tasks/
           main.yaml
           second.yaml
     Vars/
           main.yaml&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
     Default/
           main.yaml&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
     Files/
           index.html
           modify.sh
     Templates/
&lt;span&gt;           ntp.conf.j2&lt;/span&gt;
      Handlers/
           main.yaml]]></description>
			<content:encoded><![CDATA[<p>What is Ansible?<br />
#Ansible is an Open Source Software, an Automation Engine. This allows us to manage and control multiple servers from one central location and working via SSH Protocol for UNIX systems and winrm for Windows.<br />
&nbsp;<br />
Why Ansible?<br />
#Very simple to set up, learn and use, Flexible</p>
<p>How Ansible works? Ansible Architecture?<br />
#Human-readable scripts called command, playbooks to declare the desired state of a system. Ansible connects to local or remote servers via SSH and ensures that the system remains in that state.<br />
Architecture : modules, plugins, inventories, playbooks, APIs<br />
&nbsp;<br />
How to install Ansbile<br />
# install ansible , package, apache ,python, start service, verify version<br />
&nbsp;<br />
Component of ACS?<br />
# Inventory,Playbook,Control node,Managed node,Module<br />
&nbsp;<br />
Ansible Adhoc<br />
# uses the&nbsp;<span>/usr/bin/ansible</span>&nbsp;command-line tool to automate a single task on one or more managed nodes<br />
And execute a quick one-liner in ansible without writing a playbook</p>
<p>Ansible Modules<br />
#Ansible modules are units of code that can control system resources or execute system commands.</p>
<p>Ansible Plugins<br />
#Are pieces of code that extend core Ansible functionality.<br />
&nbsp;<br />
Ansible Configfile<br />
#&nbsp;configuration file : ansible.cfg for configuring core functionality</p>
<p>Ansible Playbook<br />
# List of task, use for deploy and in YAML format.<br />
&nbsp;<br />
Playbook Vars<br />
# Uses variables to manage differences between systems. Defining them in a file, passing them at the command line, or registering the return value or values of a task as a new variable.</p>
<p>PlaybookTemplate<br />
#You can create a template for a configuration file, then deploy that configuration file to multiple environments and supply the correct data (IP address, hostname, version) for each environment. You can also use templating in playbooks directly, by templating task names and more.</p>
<p>PlaybookHandlers<br />
#Handlers in Ansible playbooks are used to run specific tasks only when a change occurs on a machine.<br />
handlers:<br />
&nbsp;&#8211; name: ReStarting a Apache Server<br />
&nbsp;&nbsp;&nbsp;ansible.builtin.service:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: apache2<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;state: restarted</p>
<p>Ansible galaxy<br />
#Command to manage Ansible roles and collections.</p>
<p>Roles<br />
#<br />
Ansible Roles are expressed in YAML used to write configuration files. When a role is included in a task ,Ansible looks for a main.yml file&nbsp;:<br />
Role/<br />
  common/<br />
     Tasks/<br />
           main.yaml<br />
           second.yaml<br />
     Vars/<br />
           main.yaml&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
     Default/<br />
           main.yaml&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
     Files/<br />
           index.html<br />
           modify.sh<br />
     Templates/<br />
<span>           ntp.conf.j2</span><br />
      Handlers/<br />
           main.yaml</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ariel Balduzzi		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1800</link>

		<dc:creator><![CDATA[Ariel Balduzzi]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 14:45:10 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1800</guid>

					<description><![CDATA[What is Ansible?
It is a configuration and automation tool.

Why do we need ansible?
It can configure systems, deploy software, and orchestrate advanced workflows to support application deployment, system updates, etc.

How Ansible Works?
It uses ssh and winrm protocol to executes playbooks at endpoint from the ansible controller.

Componenet of Ansible?
There are two categories of computers: the control node and managed nodes. The control node is a computer that runs Ansible. There must be at least one control node, although a backup control node may also exist. A managed node is any device being managed by the control node.

Top 10 Ansible Adhoc commands
ansible &#060;group&#062; -m ping
ansible &#060;group&#062; -a “&#060;command&#062;”
ansible &#060;group&#062; -m shell -a “&#060;command&#062;”
ansible all -m setup
ansible all -m copy -a “src=file.txt dest=dest.txt”
ansible all -m service -a “name=&#060;service_name&#062; state=restarted”
ansible all -m yum -a &quot;name=app state=latest&quot;&#160;]]></description>
			<content:encoded><![CDATA[<p>What is Ansible?<br />
It is a configuration and automation tool.</p>
<p>Why do we need ansible?<br />
It can configure systems, deploy software, and orchestrate advanced workflows to support application deployment, system updates, etc.</p>
<p>How Ansible Works?<br />
It uses ssh and winrm protocol to executes playbooks at endpoint from the ansible controller.</p>
<p>Componenet of Ansible?<br />
There are two categories of computers: the control node and managed nodes. The control node is a computer that runs Ansible. There must be at least one control node, although a backup control node may also exist. A managed node is any device being managed by the control node.</p>
<p>Top 10 Ansible Adhoc commands<br />
ansible &lt;group&gt; -m ping<br />
ansible &lt;group&gt; -a “&lt;command&gt;”<br />
ansible &lt;group&gt; -m shell -a “&lt;command&gt;”<br />
ansible all -m setup<br />
ansible all -m copy -a “src=file.txt dest=dest.txt”<br />
ansible all -m service -a “name=&lt;service_name&gt; state=restarted”<br />
ansible all -m yum -a &#8220;name=app state=latest&#8221;&nbsp;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kuu		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1799</link>

		<dc:creator><![CDATA[Kuu]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 14:45:02 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1799</guid>

					<description><![CDATA[&lt;span&gt;What is Ansible?&lt;/span&gt;
&lt;span&gt;Ansible is a&#160;&lt;/span&gt;&lt;strong&gt;software tool that provides simple but powerful automation for cross-platform computer support&lt;/strong&gt;&lt;span&gt;.&lt;/span&gt;
&lt;span&gt;&#160;&lt;/span&gt;
&lt;strong&gt;Why do we need ansible&lt;/strong&gt;
&lt;span&gt;It can configure systems, deploy software, and orchestrate advanced workflows to support application deployment, system updates, and more&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;
&lt;span&gt;&#160;&lt;/span&gt;
&lt;span&gt;How Ansible Works?&lt;/span&gt;
&lt;span&gt;Ansible works by connecting to nodes (or hosts) and pushing out small programs—called modules—to these nodes. Nodes are the target endpoints—servers, network devices, or any computer—that you aim to manage with Ansible. Modules are used to accomplish automation tasks in Ansible.&#160;&lt;/span&gt;
&lt;span&gt;&#160;&lt;/span&gt;
&lt;span&gt;&#160;&lt;/span&gt;
&lt;span&gt;Component of Ansible?&lt;/span&gt;
&lt;span&gt;&#160;&lt;/span&gt;&lt;span&gt;Ansible Adhoc&lt;/span&gt;
&lt;span&gt;Ansible Modules&lt;/span&gt;
&lt;span&gt;Ansible Plusgins&lt;/span&gt;
&lt;span&gt;Ansible Configfile&lt;/span&gt;
&lt;span&gt;Ansible Playbook&lt;/span&gt;
&lt;span&gt;Playbook Vars&lt;/span&gt;
&lt;span&gt;PlaybookTemplate&lt;/span&gt;
&lt;span&gt;PlaybookHandlers&lt;/span&gt;
&lt;span&gt;Ansible galaxy&lt;/span&gt;
&lt;span&gt;Roles&lt;/span&gt;

&lt;span&gt;Top 10 Ansible Adhoc commands&lt;/span&gt;
&lt;span&gt;ansible all -m ping&lt;/span&gt;
&lt;span&gt;ansible all -m setup&lt;/span&gt;
&lt;span&gt;ansible all -a &quot; /bin/echo hello&quot;&lt;/span&gt;
&lt;span&gt;ansible all -m copy -a &quot;src=/path/to/local/file dest=/path/to/remote/file&quot; -b&lt;/span&gt;
&lt;span&gt;ansible all -m service -a &quot;name=nginx sate=restarted&quot; -b&lt;/span&gt;
&lt;span&gt;ansible all -m file -a &quot;path=/path/to/file mode=0646&quot; -b&lt;/span&gt;
&lt;span&gt;ansible all -m user -a name=johndoe state=present&quot; -b&lt;/span&gt;
&lt;span&gt;ansible all -i inventory -m apt -a&quot;state=latest name=apache2&quot; -u ubuntu --key-file=node.pem -b&lt;/span&gt;
&lt;span&gt;ansible all -i 172.31.40.191, -m apt -a&quot;state=latest name=apache2&quot; -u ubuntu --key-file=node.pem -b&lt;/span&gt;
ansible-playbook -i hosts &#060;your yaml&#062; --tags &quot;install&quot; -vvv]]></description>
			<content:encoded><![CDATA[<p><span>What is Ansible?</span><br />
<span>Ansible is a&nbsp;</span><strong>software tool that provides simple but powerful automation for cross-platform computer support</strong><span>.</span><br />
<span>&nbsp;</span><br />
<strong>Why do we need ansible</strong><br />
<span>It can configure systems, deploy software, and orchestrate advanced workflows to support application deployment, system updates, and more</span><span>.</span><br />
<span>&nbsp;</span><br />
<span>How Ansible Works?</span><br />
<span>Ansible works by connecting to nodes (or hosts) and pushing out small programs—called modules—to these nodes. Nodes are the target endpoints—servers, network devices, or any computer—that you aim to manage with Ansible. Modules are used to accomplish automation tasks in Ansible.&nbsp;</span><br />
<span>&nbsp;</span><br />
<span>&nbsp;</span><br />
<span>Component of Ansible?</span><br />
<span>&nbsp;</span><span>Ansible Adhoc</span><br />
<span>Ansible Modules</span><br />
<span>Ansible Plusgins</span><br />
<span>Ansible Configfile</span><br />
<span>Ansible Playbook</span><br />
<span>Playbook Vars</span><br />
<span>PlaybookTemplate</span><br />
<span>PlaybookHandlers</span><br />
<span>Ansible galaxy</span><br />
<span>Roles</span></p>
<p><span>Top 10 Ansible Adhoc commands</span><br />
<span>ansible all -m ping</span><br />
<span>ansible all -m setup</span><br />
<span>ansible all -a &#8221; /bin/echo hello&#8221;</span><br />
<span>ansible all -m copy -a &#8220;src=/path/to/local/file dest=/path/to/remote/file&#8221; -b</span><br />
<span>ansible all -m service -a &#8220;name=nginx sate=restarted&#8221; -b</span><br />
<span>ansible all -m file -a &#8220;path=/path/to/file mode=0646&#8221; -b</span><br />
<span>ansible all -m user -a name=johndoe state=present&#8221; -b</span><br />
<span>ansible all -i inventory -m apt -a&#8221;state=latest name=apache2&#8243; -u ubuntu &#8211;key-file=node.pem -b</span><br />
<span>ansible all -i 172.31.40.191, -m apt -a&#8221;state=latest name=apache2&#8243; -u ubuntu &#8211;key-file=node.pem -b</span><br />
ansible-playbook -i hosts &lt;your yaml&gt; &#8211;tags &#8220;install&#8221; -vvv</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mahendar Singh		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1798</link>

		<dc:creator><![CDATA[Mahendar Singh]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 14:40:09 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1798</guid>

					<description><![CDATA[What is Ansible?
Ansible is an automation tool used for application deployment, configuration management, cloud provisioning, and other IT automation tasks.

Why do we need Ansible?
We need Ansible because it enables automation, consistency, agility, scalability, and ease of management across different environments and systems. It helps reduce manual effort, minimize errors, and streamline IT processes.

How Ansible Works and its Components
Ansible works by connecting to remote nodes (servers, VMs, containers) over SSH (Linux/Unix) or WinRM (Windows) and executing tasks defined in Ansible playbooks, which are written in YAML format. The key components of Ansible include.
Inventory,Playbooks,Modules,Plugins,Roles,Collections.

Top 10 Ansible Ad-hoc Commands:
ansible all -m ping
ansible web -m setup
ansible db -m service -a &quot;name=mysql state=started&quot;
ansible app -m copy -a &quot;src=app.conf dest=/etc/app.conf&quot;
ansible all -m apt -a &quot;name=apache2 state=present&quot; --become
ansible web -m command -a &quot;df -h&quot;
ansible app -m lineinfile -a &quot;path=/etc/hosts line=&#039;127.0.0.1 localhost&#039;&quot;
ansible db -m user -a &quot;name=myuser password=secret&quot;
ansible all -m reboot
ansible web -m debug -a &quot;msg=&#039;Hello, World!&#039;&quot;]]></description>
			<content:encoded><![CDATA[<p>What is Ansible?<br />
Ansible is an automation tool used for application deployment, configuration management, cloud provisioning, and other IT automation tasks.</p>
<p>Why do we need Ansible?<br />
We need Ansible because it enables automation, consistency, agility, scalability, and ease of management across different environments and systems. It helps reduce manual effort, minimize errors, and streamline IT processes.</p>
<p>How Ansible Works and its Components<br />
Ansible works by connecting to remote nodes (servers, VMs, containers) over SSH (Linux/Unix) or WinRM (Windows) and executing tasks defined in Ansible playbooks, which are written in YAML format. The key components of Ansible include.<br />
Inventory,Playbooks,Modules,Plugins,Roles,Collections.</p>
<p>Top 10 Ansible Ad-hoc Commands:<br />
ansible all -m ping<br />
ansible web -m setup<br />
ansible db -m service -a &#8220;name=mysql state=started&#8221;<br />
ansible app -m copy -a &#8220;src=app.conf dest=/etc/app.conf&#8221;<br />
ansible all -m apt -a &#8220;name=apache2 state=present&#8221; &#8211;become<br />
ansible web -m command -a &#8220;df -h&#8221;<br />
ansible app -m lineinfile -a &#8220;path=/etc/hosts line=&#8217;127.0.0.1 localhost'&#8221;<br />
ansible db -m user -a &#8220;name=myuser password=secret&#8221;<br />
ansible all -m reboot<br />
ansible web -m debug -a &#8220;msg=&#8217;Hello, World!'&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pablo Rossi		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1797</link>

		<dc:creator><![CDATA[Pablo Rossi]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 14:36:22 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1797</guid>

					<description><![CDATA[What is Ansible?Ansible is an open-source automation tool used for configuration management, application deployment, task automation, and IT orchestration. It simplifies complex tasks, reduces manual efforts, and ensures consistency across IT environments.

Why Do We Need Ansible?Ansible is needed for several reasons:
&lt;ol&gt;&lt;li&gt;&lt;strong&gt;Automation&lt;/strong&gt;: Reduces manual effort by automating repetitive tasks.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Consistency&lt;/strong&gt;: Ensures consistent configuration across multiple servers.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Scalability&lt;/strong&gt;: Easily manages a large number of servers.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Simplicity&lt;/strong&gt;: Uses simple YAML syntax, making it easy to learn and use.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Agentless&lt;/strong&gt;: Does not require agents on remote hosts, simplifying management.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Flexibility&lt;/strong&gt;: Manages various environments including cloud, virtual, and physical.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Integration&lt;/strong&gt;: Works well with various CI/CD tools for DevOps workflows.&lt;/li&gt;&lt;/ol&gt;
How Ansible Works?Ansible works by connecting to nodes (clients/servers) through SSH (or WinRM for Windows) and then pushing out small programs called &quot;Ansible modules&quot; to these nodes. These modules execute the instructions written in the playbooks (Ansible’s configuration, deployment, and orchestration language). After execution, Ansible removes the modules. It follows an agentless architecture, meaning no software needs to be installed on the nodes being managed.

Components of Ansible&lt;ol&gt;&lt;li&gt;&lt;strong&gt;Playbooks&lt;/strong&gt;: YAML files containing a series of tasks to be executed on managed nodes.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Modules&lt;/strong&gt;: Small programs executed by Ansible on remote nodes. Examples include command, file, yum, and service modules.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Inventory&lt;/strong&gt;: Lists of hosts managed by Ansible, organized into groups.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Plugins&lt;/strong&gt;: Extend Ansible’s core functionality (e.g., connection plugins, callback plugins, and lookup plugins).&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Roles&lt;/strong&gt;: Predefined collections of tasks and configurations.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Tasks&lt;/strong&gt;: The basic units of action in Ansible, which call upon modules.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Handlers&lt;/strong&gt;: Tasks that are triggered by other tasks.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Templates&lt;/strong&gt;: Files that contain variables to be replaced by actual values when the template is processed.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Variables&lt;/strong&gt;: Used to manage dynamic values and manage configurations.&lt;/li&gt;&lt;/ol&gt;]]></description>
			<content:encoded><![CDATA[<p>What is Ansible?Ansible is an open-source automation tool used for configuration management, application deployment, task automation, and IT orchestration. It simplifies complex tasks, reduces manual efforts, and ensures consistency across IT environments.</p>
<p>Why Do We Need Ansible?Ansible is needed for several reasons:</p>
<ol>
<li><strong>Automation</strong>: Reduces manual effort by automating repetitive tasks.</li>
<li><strong>Consistency</strong>: Ensures consistent configuration across multiple servers.</li>
<li><strong>Scalability</strong>: Easily manages a large number of servers.</li>
<li><strong>Simplicity</strong>: Uses simple YAML syntax, making it easy to learn and use.</li>
<li><strong>Agentless</strong>: Does not require agents on remote hosts, simplifying management.</li>
<li><strong>Flexibility</strong>: Manages various environments including cloud, virtual, and physical.</li>
<li><strong>Integration</strong>: Works well with various CI/CD tools for DevOps workflows.</li>
</ol>
<p>How Ansible Works?Ansible works by connecting to nodes (clients/servers) through SSH (or WinRM for Windows) and then pushing out small programs called &#8220;Ansible modules&#8221; to these nodes. These modules execute the instructions written in the playbooks (Ansible’s configuration, deployment, and orchestration language). After execution, Ansible removes the modules. It follows an agentless architecture, meaning no software needs to be installed on the nodes being managed.</p>
<p>Components of Ansible</p>
<ol>
<li><strong>Playbooks</strong>: YAML files containing a series of tasks to be executed on managed nodes.</li>
<li><strong>Modules</strong>: Small programs executed by Ansible on remote nodes. Examples include command, file, yum, and service modules.</li>
<li><strong>Inventory</strong>: Lists of hosts managed by Ansible, organized into groups.</li>
<li><strong>Plugins</strong>: Extend Ansible’s core functionality (e.g., connection plugins, callback plugins, and lookup plugins).</li>
<li><strong>Roles</strong>: Predefined collections of tasks and configurations.</li>
<li><strong>Tasks</strong>: The basic units of action in Ansible, which call upon modules.</li>
<li><strong>Handlers</strong>: Tasks that are triggered by other tasks.</li>
<li><strong>Templates</strong>: Files that contain variables to be replaced by actual values when the template is processed.</li>
<li><strong>Variables</strong>: Used to manage dynamic values and manage configurations.</li>
</ol>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ashish khurana		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1796</link>

		<dc:creator><![CDATA[Ashish khurana]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 14:24:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1796</guid>

					<description><![CDATA[&lt;span&gt;What is Ansible?&lt;/span&gt;
Ansible is a Configuration management tool. 

&lt;span&gt;Why Ansible?&lt;/span&gt;
Manage multiple resources at the same time. 

&lt;span&gt;How Ansible works? Ansible Architecture?&lt;/span&gt;
Ansible connect to the endpoint without any agent and execute code on the remote machine with help of ansible modules.

&lt;span&gt;How to install Ansbile&lt;/span&gt;
On Linux machine by running command yum install ansible. 

&lt;span&gt;Component of ACS?&lt;/span&gt;
Modules, plugins, inventory. 

&lt;span&gt;Ansible Adhoc&lt;/span&gt;
It&#039;s a command line tool to execute single task on one or more then one end points.


&lt;span&gt;Ansible Modules&lt;/span&gt;
Ansible module is a small program (or api) which gets executed on local or remote server.

&lt;span&gt;Ansible Plusgins&lt;/span&gt;
Ansible uses plugins to add features of its core functionality.

&lt;span&gt;Ansible Configfile&lt;/span&gt;
It&#039;s a file through which Ansible core settings are managed.

&lt;span&gt;Ansible Playbook&lt;/span&gt;
Its a set of tasks which gets executed on single or multiple end points (servers) 

&lt;span&gt;Playbook Vars&lt;/span&gt;
Playbook vars are used to pass the values to the ansible code (static or dynamic).

&lt;span&gt;PlaybookTemplate&lt;/span&gt;
&lt;span&gt;Template is used to facilitate and automate the management of configuration files for different endpoints. &lt;/span&gt;

&lt;span&gt;PlaybookHandlers&lt;/span&gt;
It gets executed when called by other event. 

&lt;span&gt;Ansible galaxy&lt;/span&gt;
It&#039;s a platform where users share their codes which is run by roles. 

&lt;span&gt;Roles&lt;/span&gt;
It&#039;s a method of structure the ansible tasks, files, and variables.]]></description>
			<content:encoded><![CDATA[<p><span>What is Ansible?</span><br />
Ansible is a Configuration management tool. </p>
<p><span>Why Ansible?</span><br />
Manage multiple resources at the same time. </p>
<p><span>How Ansible works? Ansible Architecture?</span><br />
Ansible connect to the endpoint without any agent and execute code on the remote machine with help of ansible modules.</p>
<p><span>How to install Ansbile</span><br />
On Linux machine by running command yum install ansible. </p>
<p><span>Component of ACS?</span><br />
Modules, plugins, inventory. </p>
<p><span>Ansible Adhoc</span><br />
It&#8217;s a command line tool to execute single task on one or more then one end points.</p>
<p><span>Ansible Modules</span><br />
Ansible module is a small program (or api) which gets executed on local or remote server.</p>
<p><span>Ansible Plusgins</span><br />
Ansible uses plugins to add features of its core functionality.</p>
<p><span>Ansible Configfile</span><br />
It&#8217;s a file through which Ansible core settings are managed.</p>
<p><span>Ansible Playbook</span><br />
Its a set of tasks which gets executed on single or multiple end points (servers) </p>
<p><span>Playbook Vars</span><br />
Playbook vars are used to pass the values to the ansible code (static or dynamic).</p>
<p><span>PlaybookTemplate</span><br />
<span>Template is used to facilitate and automate the management of configuration files for different endpoints. </span></p>
<p><span>PlaybookHandlers</span><br />
It gets executed when called by other event. </p>
<p><span>Ansible galaxy</span><br />
It&#8217;s a platform where users share their codes which is run by roles. </p>
<p><span>Roles</span><br />
It&#8217;s a method of structure the ansible tasks, files, and variables.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Quek		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1795</link>

		<dc:creator><![CDATA[Quek]]></dc:creator>
		<pubDate>Wed, 19 Jun 2024 14:21:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1795</guid>

					<description><![CDATA[6. Ansible modules are small programs or scripts that Ansible uses to perform specific tasks on remote systems. They are the building blocks that Ansible uses to execute commands, deploy configurations, or manage infrastructure. Modules can be simple (like copying a file or installing a package) or complex (like provisioning cloud resources or configuring network devices).

7. Ansible plugins extend the functionality of Ansible by providing additional capabilities beyond what is offered by default modules and features. It can be categorise as Inventory Plugins, module plugins, Action Plugins, Lookup Plugins, Callback Plugines and Filter Plugins.

8.The Ansible configuration file, often referred to as ansible.cfg, is a central configuration file used to customize and control various aspects of how Ansible behaves when executing tasks and playbooks.&#160;

9. An Ansible playbook is a file or script written in YAML format that defines a set of tasks to be executed against one or more managed nodes (servers or devices) in our infrastructure. Playbooks allow us to automate tasks and configurations, making it easier to manage and orchestrate complex IT environments.

10. Variables (often referred to simply as &quot;vars&quot;) are used to store and manage data that can be reused throughout the playbook. They allow us to parameterize the tasks and configurations, making playbooks more flexible and easier to maintain.&#160;

11. A playbook template typically refers to a pre-defined structure or blueprint for writing Ansible playbooks. This template serves as a starting point or guide, ensuring consistency in playbook structure, organization, and best practices across projects or teams.

12. A playbook template provides a structured starting point that includes predefined sections, best practices, and placeholders to facilitate the writing of Ansible automation scripts which can be reusable.

13. Handlers are a special type of task that are triggered by other tasks within a playbook. They are commonly used to manage services that need to be restarted or have their status refreshed only when necessary, usually after changes have been made.

14. Ansible Galaxy is a hub or repository for finding, sharing, and managing Ansible roles.

15. Roles in Ansible are units of organization that encapsulate tasks, handlers, templates, and other Ansible artifacts in a reusable format.&#160;]]></description>
			<content:encoded><![CDATA[<p>6. Ansible modules are small programs or scripts that Ansible uses to perform specific tasks on remote systems. They are the building blocks that Ansible uses to execute commands, deploy configurations, or manage infrastructure. Modules can be simple (like copying a file or installing a package) or complex (like provisioning cloud resources or configuring network devices).</p>
<p>7. Ansible plugins extend the functionality of Ansible by providing additional capabilities beyond what is offered by default modules and features. It can be categorise as Inventory Plugins, module plugins, Action Plugins, Lookup Plugins, Callback Plugines and Filter Plugins.</p>
<p>8.The Ansible configuration file, often referred to as ansible.cfg, is a central configuration file used to customize and control various aspects of how Ansible behaves when executing tasks and playbooks.&nbsp;</p>
<p>9. An Ansible playbook is a file or script written in YAML format that defines a set of tasks to be executed against one or more managed nodes (servers or devices) in our infrastructure. Playbooks allow us to automate tasks and configurations, making it easier to manage and orchestrate complex IT environments.</p>
<p>10. Variables (often referred to simply as &#8220;vars&#8221;) are used to store and manage data that can be reused throughout the playbook. They allow us to parameterize the tasks and configurations, making playbooks more flexible and easier to maintain.&nbsp;</p>
<p>11. A playbook template typically refers to a pre-defined structure or blueprint for writing Ansible playbooks. This template serves as a starting point or guide, ensuring consistency in playbook structure, organization, and best practices across projects or teams.</p>
<p>12. A playbook template provides a structured starting point that includes predefined sections, best practices, and placeholders to facilitate the writing of Ansible automation scripts which can be reusable.</p>
<p>13. Handlers are a special type of task that are triggered by other tasks within a playbook. They are commonly used to manage services that need to be restarted or have their status refreshed only when necessary, usually after changes have been made.</p>
<p>14. Ansible Galaxy is a hub or repository for finding, sharing, and managing Ansible roles.</p>
<p>15. Roles in Ansible are units of organization that encapsulate tasks, handlers, templates, and other Ansible artifacts in a reusable format.&nbsp;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Prapasri		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1780</link>

		<dc:creator><![CDATA[Prapasri]]></dc:creator>
		<pubDate>Tue, 18 Jun 2024 16:24:03 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1780</guid>

					<description><![CDATA[What is Ansible?
#Ansible is an Open Source Software,an Automation Engine. This allows us to manage and control multiple servers from one central location and working via SSH Protocol for UNIX systems and winrm for Windows.

Why do we need ansible?
# Easy to learn, test, debug, share

How Ansible Works?
# Human-readable scripts called command,playbooks to declare the desired state of a system. Ansible connects to local or remote servers via SSH and ensures that the system remains in that state.

Componenet of Ansible?
# Inventory,Playbook,Control node,Managed node,Module

Top 10 Ansible Adhoc commands
#&#160;
reboot server
managing files
managing packages
managing users and groups
managing services
gathering facts
check mode
sample :
ansible multi -m shell -a uptime&#160;
ansible all -m command -a &quot;df -h&quot;
ansible webservers -m copy -a &quot;src=/local/file.conf dest=/remote/path/file.conf&quot;
ansible all -m file -a &quot;path=/path/to/directory state=directory mode=0755&quot;
ansible all -m service -a &quot;name=nginx state=restarted&quot;
ansible all -m apt -a &quot;name=nginx state=present&quot;
ansible all -m user -a &quot;name=john state=present&quot;
ansible all -m setup
ansible &#039;webserver*&#039;-m ping]]></description>
			<content:encoded><![CDATA[<p>What is Ansible?<br />
#Ansible is an Open Source Software,an Automation Engine. This allows us to manage and control multiple servers from one central location and working via SSH Protocol for UNIX systems and winrm for Windows.</p>
<p>Why do we need ansible?<br />
# Easy to learn, test, debug, share</p>
<p>How Ansible Works?<br />
# Human-readable scripts called command,playbooks to declare the desired state of a system. Ansible connects to local or remote servers via SSH and ensures that the system remains in that state.</p>
<p>Componenet of Ansible?<br />
# Inventory,Playbook,Control node,Managed node,Module</p>
<p>Top 10 Ansible Adhoc commands<br />
#&nbsp;<br />
reboot server<br />
managing files<br />
managing packages<br />
managing users and groups<br />
managing services<br />
gathering facts<br />
check mode<br />
sample :<br />
ansible multi -m shell -a uptime&nbsp;<br />
ansible all -m command -a &#8220;df -h&#8221;<br />
ansible webservers -m copy -a &#8220;src=/local/file.conf dest=/remote/path/file.conf&#8221;<br />
ansible all -m file -a &#8220;path=/path/to/directory state=directory mode=0755&#8221;<br />
ansible all -m service -a &#8220;name=nginx state=restarted&#8221;<br />
ansible all -m apt -a &#8220;name=nginx state=present&#8221;<br />
ansible all -m user -a &#8220;name=john state=present&#8221;<br />
ansible all -m setup<br />
ansible &#8216;webserver*&#8217;-m ping</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: OctavioRodriguez		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1779</link>

		<dc:creator><![CDATA[OctavioRodriguez]]></dc:creator>
		<pubDate>Tue, 18 Jun 2024 16:04:26 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1779</guid>

					<description><![CDATA[&lt;strong&gt;What is Ansible?&lt;/strong&gt;

&lt;span&gt;Ansible, it&#039;s a component open-source automation for Configuration Management Tool that use Phyton Code Base&lt;/span&gt;

&lt;span&gt; &lt;/span&gt;&lt;strong&gt;Why do we need ansible?&lt;/strong&gt;

&lt;span&gt;Its human readable automation no special coding skills to do powerful things can be utilized and shared, so they can get productive quickly and contribute their expertise&lt;/span&gt;

&lt;span&gt; &lt;/span&gt;&lt;strong&gt;How Ansible Works?&lt;/strong&gt;

&lt;span&gt;Is an open source, command-line for automation software application written in Python, works by connecting to nodes and with small programs in modules with Plugins. The nodes are the target servers, network devices, or any computer that you manage with Ansible&lt;/span&gt;
&lt;span&gt;&#160;&lt;/span&gt;
&lt;span&gt; &lt;/span&gt;&lt;strong&gt;Components of Ansible?&lt;/strong&gt;

&lt;span&gt;Executables Playbooks, Modules, Plugins &#038; Config files&lt;/span&gt;

&lt;span&gt; &lt;/span&gt;&lt;strong&gt;Top 10 Ansible Adhoc commands&lt;/strong&gt;
	
&lt;span&gt;Ansible ad hoc commands are one-liner Linux shell commands are quick and easy, and playbooks are like a shell script, a collective of many commands with structure logic&lt;/span&gt;]]></description>
			<content:encoded><![CDATA[<p><strong>What is Ansible?</strong></p>
<p><span>Ansible, it&#8217;s a component open-source automation for Configuration Management Tool that use Phyton Code Base</span></p>
<p><span> </span><strong>Why do we need ansible?</strong></p>
<p><span>Its human readable automation no special coding skills to do powerful things can be utilized and shared, so they can get productive quickly and contribute their expertise</span></p>
<p><span> </span><strong>How Ansible Works?</strong></p>
<p><span>Is an open source, command-line for automation software application written in Python, works by connecting to nodes and with small programs in modules with Plugins. The nodes are the target servers, network devices, or any computer that you manage with Ansible</span><br />
<span>&nbsp;</span><br />
<span> </span><strong>Components of Ansible?</strong></p>
<p><span>Executables Playbooks, Modules, Plugins &amp; Config files</span></p>
<p><span> </span><strong>Top 10 Ansible Adhoc commands</strong></p>
<p><span>Ansible ad hoc commands are one-liner Linux shell commands are quick and easy, and playbooks are like a shell script, a collective of many commands with structure logic</span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Quek Chik long		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1777</link>

		<dc:creator><![CDATA[Quek Chik long]]></dc:creator>
		<pubDate>Tue, 18 Jun 2024 14:56:06 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1777</guid>

					<description><![CDATA[1. Ansible is a configuration management tools which manage configuration of multiple resource on many servers.

2. Is easy to earn, test, debug, share, extend compare to python, java, etc.

3. It need Ansible Control Server to manage Ansible Remote server by connected agent less using SSH for Linux and WINRM for windows.

4.it consist of Executables, Modules, Plugins and Config file.

5. 
a) - name: Create a new group
&#160;ansible.windows.win_group:
&#160;&#160;&#160;name: deploy

b) #ansible all -i 127.0.13.1, -m user -a &quot;name=deploy group=deploy&quot; -u tester -K -b -k

c) ansible all -i 127.0.13.1, -m yum -a &quot;name=httpd state=present&quot; -u tester -K -b -k

d) ansible all -i 127.0.13.1, -m yum -a &quot;name=httpd state=start enabled=true&quot; -u tester -K -b -k -k

e) ansible all -i 127.0.13.1, -m file -a &quot;path=/var/www/html state=directory&quot; -u tester -K -b -k
ansible all -i127.0.13.1, -m file -a &quot;dest=/var/www/html/index.html mode=600 state=touch&quot; -u tester -K -b -k
ansible all -i 127.0.13.1, -m lineinfile -a &quot;dest=/var/www/html/index.html line=&#039; 

f) ansible all -i 127.0.13.1, -m yum -a &quot;name=git,wget state=present&quot; -u tester -K -b -k

g) nsible all -i 127.0.13.1, -m reboot -u tester -K -b -k]]></description>
			<content:encoded><![CDATA[<p>1. Ansible is a configuration management tools which manage configuration of multiple resource on many servers.</p>
<p>2. Is easy to earn, test, debug, share, extend compare to python, java, etc.</p>
<p>3. It need Ansible Control Server to manage Ansible Remote server by connected agent less using SSH for Linux and WINRM for windows.</p>
<p>4.it consist of Executables, Modules, Plugins and Config file.</p>
<p>5.<br />
a) &#8211; name: Create a new group<br />
&nbsp;ansible.windows.win_group:<br />
&nbsp;&nbsp;&nbsp;name: deploy</p>
<p>b) #ansible all -i 127.0.13.1, -m user -a &#8220;name=deploy group=deploy&#8221; -u tester -K -b -k</p>
<p>c) ansible all -i 127.0.13.1, -m yum -a &#8220;name=httpd state=present&#8221; -u tester -K -b -k</p>
<p>d) ansible all -i 127.0.13.1, -m yum -a &#8220;name=httpd state=start enabled=true&#8221; -u tester -K -b -k -k</p>
<p>e) ansible all -i 127.0.13.1, -m file -a &#8220;path=/var/www/html state=directory&#8221; -u tester -K -b -k<br />
ansible all -i127.0.13.1, -m file -a &#8220;dest=/var/www/html/index.html mode=600 state=touch&#8221; -u tester -K -b -k<br />
ansible all -i 127.0.13.1, -m lineinfile -a &#8220;dest=/var/www/html/index.html line=&#8217; </p>
<p>f) ansible all -i 127.0.13.1, -m yum -a &#8220;name=git,wget state=present&#8221; -u tester -K -b -k</p>
<p>g) nsible all -i 127.0.13.1, -m reboot -u tester -K -b -k</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Cesar Gonzalez - México		</title>
		<link>https://www.bestdevops.com/ansible-notes-of-june-2024-session/#comment-1776</link>

		<dc:creator><![CDATA[Cesar Gonzalez - México]]></dc:creator>
		<pubDate>Tue, 18 Jun 2024 14:32:05 +0000</pubDate>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=29763#comment-1776</guid>

					<description><![CDATA[Thanks]]></description>
			<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
