<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: sumanth.myneni@gmail.com</title>
    <description>The latest articles on Debug School by sumanth.myneni@gmail.com (@sumanthmyneni_411).</description>
    <link>https://www.debug.school/sumanthmyneni_411</link>
    <image>
      <url>https://www.debug.school/images/CPDdQlGexClW9WOTxwLbEDeLKxuBxqind7bvkmstzXo/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly90aGVw/cmFjdGljYWxkZXYu/czMuYW1hem9uYXdz/LmNvbS9pLzk5bXZs/c2Z1NXRmajltN2t1/MjVkLnBuZw</url>
      <title>Debug School: sumanth.myneni@gmail.com</title>
      <link>https://www.debug.school/sumanthmyneni_411</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/sumanthmyneni_411"/>
    <language>en</language>
    <item>
      <title>Ansible-Ad-Hoc</title>
      <dc:creator>sumanth.myneni@gmail.com</dc:creator>
      <pubDate>Mon, 07 Aug 2023 09:04:09 +0000</pubDate>
      <link>https://www.debug.school/sumanthmyneni_411/ansible-ad-hoc-ccm</link>
      <guid>https://www.debug.school/sumanthmyneni_411/ansible-ad-hoc-ccm</guid>
      <description>&lt;p&gt;These are ad-hoc commands.&lt;/p&gt;

&lt;p&gt;Create Group&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m group -a "name=Sumanth-A1"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create User&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m user -a "name=deploy-user state=present"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install httpd package&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m package -a "name=httpd state=present"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start httpd and enable&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m systemd -a "name=httpd state=started enabled=yes"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Move index.html file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m copy -a "src=/usr/local/bin dest=/var/www/html/index.html mod=0644"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install package "git"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m package -a "name=git state=present"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install package "wget"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m package -a "name=wget state=present"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clone GIT Repo&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ansible localhost -m git -a "repo=https://github.com/scmgalaxy/repo.git dest=/home/user/repo"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
