<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ansible &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/ansible/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Mon, 10 Jan 2022 11:18:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Ansible &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Install and Configure Ansible on CentOS 8 for Use With Windows Server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-ansible-on-centos-8-for-use-with-windows-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-ansible-on-centos-8-for-use-with-windows-server/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 04 Jun 2021 11:32:37 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3845</guid>

					<description><![CDATA[Ansible is a unique open source tool for automating tasks. Ansible is a universal language that reveals the mystery of how work is done. Turn complex tasks into repeatable instructions. Deploy enterprise-wide protocols with the click of a button. Now you can scale automation, manage complex deployments, and increase productivity [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.ansible.com/">Ansible</a></strong> is a unique open source tool for automating tasks. Ansible is a universal language that reveals the mystery of how work is done. Turn complex tasks into repeatable instructions. Deploy enterprise-wide protocols with the click of a button. Now you can scale automation, manage complex deployments, and increase productivity with an enterprise automation platform that can be used by all IT teams.</p>



<h2 id="installation" >Installation</h2>



<p>In order to install <strong>Ansible</strong>, you first need to install the<strong> EPEL</strong> repository. This can be done using a special command:</p>



<pre class="wp-block-code"><code>yum install epel-release</code></pre>



<p>Then we advise you to update the packages on your <strong><em>CentOS </em>distribution</strong></p>



<pre class="wp-block-code"><code>yum -y update</code></pre>



<p>After updating the packages, install <strong>Ansible</strong> with the yum extension using a special command:</p>



<pre class="wp-block-code"><code>yum -y install ansible</code></pre>



<blockquote class="wp-block-quote"><p><strong>For correct and competent administration of severs on Windows, you need to install the following packages: python-pip, pywinrm and also pip itself.</strong></p></blockquote>



<p>The next step is to install the <strong>Python</strong> packages. This can be done using a special command:</p>



<pre class="wp-block-code"><code>yum -y install python-pip pip</code></pre>



<p>In order to work with <strong>Ansible</strong> in the future, you need to check the installation. By entering the command:</p>



<pre class="wp-block-code"><code>ansible --version</code></pre>



<h2 id="setup-ansible" >Setup Ansible</h2>



<p>First of all, it is recommended to update the packages on your <strong>CentOS</strong>:</p>



<pre class="wp-block-code"><code>yum -y update</code></pre>



<p>Then go to the <strong>Ansible</strong> directory</p>



<pre class="wp-block-code"><code>cd /etc/ansible</code></pre>



<p><strong>Edit</strong> the hosts file in your favorite text editor</p>



<pre class="wp-block-code"><code>nano hosts</code></pre>



<p>To configure <strong>Windows</strong> and its further use, it is necessary to do the following:</p>



<pre class="wp-block-code"><code>&#91;windows]
server1.domain.local
server1.domain.local</code></pre>



<p>Next, you need to create an encrypted vault that will contain access identifiers for the <strong>Windows</strong> server. To accomplish this, it is recommended that you create a new encrypted <strong>yml</strong> file. The file name must match the host group to which it will apply. In our case, the created windows group is called, which means that there will be a <strong>windows.yml</strong> file</p>



<pre class="wp-block-code"><code>mkdir group_vars
cd group_vars
ansible-vault create windows.yml</code></pre>



<p>In the finish, you need to add the following parameters to your <strong>yml</strong> file</p>



<pre class="wp-block-code"><code>ansible_ssh_user: _your_ssh_user_
ansible_ssh_pass: _your_ssh_pass_
ansible_ssh_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-ansible-on-centos-8-for-use-with-windows-server/feed/</wfw:commentRss>
			<slash:comments>457</slash:comments>
		
		
			</item>
		<item>
		<title>How to interact with Git from Ansible</title>
		<link>https://help.hostry.com/knowledge-base/how-to-interact-with-git-from-ansible/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-interact-with-git-from-ansible/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 10 Jan 2022 11:18:48 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4602</guid>

					<description><![CDATA[Ansible is a unique open source tool for automating tasks. Ansible is a universal language that reveals the mystery of how work is done. Turn complex tasks into repeatable instructions. Deploy enterprise-wide protocols with the click of a button. Now you can scale automation, manage complex deployments, and increase productivity [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.ansible.com/">Ansible</a> is a unique open source tool for automating tasks. Ansible is a universal language that reveals the mystery of how work is done. Turn complex tasks into repeatable instructions. Deploy enterprise-wide protocols with the click of a button. Now you can scale automation, manage complex deployments, and increase productivity with an enterprise automation platform that all IT departments can use.</p>



<p>Next, we will consider the Ansible git module, its capabilities and advantages. This tool will perfectly allow you to carry out many operations that will be associated with version control on remote hosts. It is part of the ansible core and is available with any default Ansible installation. Using the git module, you clone repositories, create archives from repositories, receive pull requests, and many other operations.</p>



<h2 id="ansible-clone-repository" >Ansible clone repository</h2>



<p>You can clone the git repository. You can do it like this:</p>



<pre class="wp-block-code"><code>---
- hosts: all
gather_facts: no
tasks:
- name: Example
git:
repo: "https://mydomain.com/repo"
dest: ~/user/repo
clone: yes
update: yes</code></pre>



<h2 id="ansible-checkout-git-repository" >Ansible Checkout Git Repository</h2>



<p>If you need to check out a specific repository using the Ansible git module, you can use the following:</p>



<pre class="wp-block-code"><code>---
- hosts: all
gather_facts: no
tasks:
- name: Example
git:
repo: "https://mydomain.org/repo.git"
dest: ~/user/repo</code></pre>



<h2 id="ansible-single-clone-branch" >Ansible single clone branch</h2>



<p>This is due to the fact that one branch is being cloned from the repo.</p>



<pre class="wp-block-preformatted">---
- hosts:&nbsp;all
gather_facts: no
tasks:
- name: Example
git:
repo:&nbsp;"https://mydomain.org/repo"
dest:&nbsp;~/user/repo
single_branch: yes
version: branch1</pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-interact-with-git-from-ansible/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
