<?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: Naveen Kumar</title>
    <description>The latest articles on Debug School by Naveen Kumar (@naveenedibilli_296).</description>
    <link>https://www.debug.school/naveenedibilli_296</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: Naveen Kumar</title>
      <link>https://www.debug.school/naveenedibilli_296</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/naveenedibilli_296"/>
    <language>en</language>
    <item>
      <title>Ansible day 2 assignment</title>
      <dc:creator>Naveen Kumar</dc:creator>
      <pubDate>Tue, 08 Aug 2023 11:31:09 +0000</pubDate>
      <link>https://www.debug.school/naveenedibilli_296/ansible-day-2-assignment-3if0</link>
      <guid>https://www.debug.school/naveenedibilli_296/ansible-day-2-assignment-3if0</guid>
      <description>&lt;h1&gt;
  
  
  Question 1
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: Create Deploy group
hosts: web
tasks:

&lt;ul&gt;
&lt;li&gt;name: create delpy group
group:
  name: deploy
  state: present&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory group.yaml -u root -k
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Question2
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: Create user in deploy group
hosts: web
tasks:

&lt;ul&gt;
&lt;li&gt;name: create deploy-user in deploy group
user:
  name: deploy-user
  shell: /bin/bash
  groups: deploy
  append: yes&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory user.yaml -u root -k
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Question3
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: Install apache
hosts: web
tasks:

&lt;ul&gt;
&lt;li&gt;name: Install Apache
yum:
  name: httpd
  state: latest&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory apache.yaml -u root -k
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Question4
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: Start apache
hosts: web
tasks:

&lt;ul&gt;
&lt;li&gt;name: Start Apache service
service:
  name: httpd
  state: started
  enabled: yes&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory apachestart.yaml -u root -k
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Question5
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: create html file with dummy code
hosts: web
tasks:

&lt;ul&gt;
&lt;li&gt;name: copy command to create html file with dummy code
copy:
  dest: /var/www/html/index.html
  content: &amp;lt;!DOCTYPE html&amp;gt;My web page&lt;h1&gt;Hello, world!&lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory samplehtml.yaml -u root -k
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Question6
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: reboot machine
hosts: web
tasks:

&lt;ul&gt;
&lt;li&gt;name: reboot machine
reboot:&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory reboot.yaml -u root -k
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Question7
&lt;/h1&gt;




&lt;ul&gt;
&lt;li&gt;name: Install Git
hosts: localhost
tasks:

&lt;ul&gt;
&lt;li&gt;name: Install Git
yum:
  name: git&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ansible-playbook -i inventory git.yaml -u root -k
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Ansible Day 1 Assignment</title>
      <dc:creator>Naveen Kumar</dc:creator>
      <pubDate>Mon, 07 Aug 2023 11:39:09 +0000</pubDate>
      <link>https://www.debug.school/naveenedibilli_296/ansible-day-1-assignment-44ih</link>
      <guid>https://www.debug.school/naveenedibilli_296/ansible-day-1-assignment-44ih</guid>
      <description>&lt;p&gt;ansible localhost -m yum -a"state=absent name=httpd"&lt;br&gt;
ansible localhost -m yum -a"state=installed name=httpd"&lt;br&gt;
ansible localhost -m copy -a'dest=/var/www/html/index.html content="&amp;lt;!DOCTYPE html&amp;gt;&lt;/p&gt;Page Title&lt;h1&gt;This iscopy&lt;/h1&gt;
&lt;p&gt;This is a paragraph.&lt;/p&gt;"'

&lt;p&gt;ansible localhost -m service -a"name=firewalld state=stopped enabled=no"&lt;/p&gt;

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