🚀 DevOps Certified Professional
📅 Starting: 1st of Every Month 🤝 +91 8409492687 | 🤝 +1 (469) 756-6329 🔍 Contact@DevOpsSchool.com

Ansible Playbook Programs

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

1.Write a Ansible Playbook to create a group called “deploy

 tasks:
  - name: create group
    group:
      name: deploy
      state: present
  

2.Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell.

 $ ansible name=deploy-user group=deploy shell=/bin/bash state=present

3.Write a Ansible Playbook to install package named “httpd” in RHEL/centos

Install Apache name=httpd

4.Write a Ansible Playbook to start and enable the service named “httpd”

 tasks:
  - name: start service
    service:
      name: httpd

      state: started

5.Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents.

$ ansible Create a file dest=/var/www/html/index.html mode=600 state=touch

6.Write a Ansible Playbook to reboot a self machine.

 tasks:
  - name: copy a file
    copy:
      src: index.html

      dest: /var/www/html/second.html

7.Write a Ansible Playbook to reboot a self machine.

$ ansible Install git, wget packages name=git,wget state=present

8.Write a Ansible Playbook to clone git repo. thttps://github.com/scmgalaxy/ansible-role-template

$ ansible Clone the repo using url repo=https://github.com/scmgalaxy/ansible-role-template clone=yes dest=/tmp/test