<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[CloudForms Now]]></provider_name><provider_url><![CDATA[http://cloudformsblog.redhat.com]]></provider_url><author_name><![CDATA[Jerome Marc]]></author_name><author_url><![CDATA[https://cloudformsblog.redhat.com/author/jeromemarc/]]></author_url><title><![CDATA[My First Ansible Control Action&nbsp;(Video)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>With this short video, we continue our series based on Red Hat Knowledge Base articles exploring how to take advantage of Ansible Automation inside Red Hat CloudForms. This post is a follow-up of our previous <a href="http://cloudformsblog.redhat.com/2017/07/24/my-first-ansible-service-video/">My First Ansible Service</a> article.</p>
<p>As a summary, what we do in this video is to create a control policy that checks if the VM CPU or memory size has changed, and if so, resets the size to 1 CPU and 1GB automatically.</p>
<p><!--more--></p>
<p>Specifically, what we show in this video is how to:</p>
<ul>
<li>Create VMware credentials for vCenter</li>
<li>Create a new Service Item to reconfigure our VM</li>
<li>Create a new Action and Policy for running an Ansible Playbook</li>
<li>Create and assign a new Policy Profile to VMs</li>
<li>Test the Policy by re-configuring VM resources manually, and validating our control Policy</li>
</ul>
<p>&nbsp;</p>
<p><span class="embed-youtube" style="text-align:center; display: block;"><iframe class='youtube-player' type='text/html' width='640' height='360' src='https://www.youtube.com/embed/2Fky4S9hzJw?version=3&#038;rel=1&#038;fs=1&#038;autohide=2&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' allowfullscreen='true' style='border:0;'></iframe></span></p>
<p>&nbsp;</p>
<p>The Red Hat Knowledge Base article, including the necessary playbooks to implement this example, are available on this <a href="https://access.redhat.com/articles/3062981">Red Hat Knowledge Base</a> article.</p>
<p>Please note that you need to install pysphere from the appliance console for the playbook to run:</p>
<pre>easy_install -U pysphere</pre>
]]></html><thumbnail_url><![CDATA[https://i1.wp.com/s2.wp.com/wp-content/themes/vip/rh-parent/img/og_shadowman.png?ssl=1&fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[200]]></thumbnail_width><thumbnail_height><![CDATA[200]]></thumbnail_height></oembed>