Category: DevOps
Why Ansible
Assignment 1 What is Ansible? Ansible is a configuration management for the server. Why Ansible? Easy to Learn Platform independent Idempotent Continuous deployment. Network Automation. Configuration Management. Architecture of Ansible:
Read moreAnsible Playbook Exercises
https://www.devopsschool.com/blog/ansible-playbook-lab-excercise-part-2/ To run the playbook: Playbook Variables Precedence of Variables Command Line variable takes precedence over all other. Variables using task include takes precedence over all, except command line variable. External variables take precedence over variable prompt. Variable using prompt takes precedence over embedded variables.
Read moreAnsible Playbook Lab & Excercise – Part 2
9.Now Merge all Top Playbook into one and run and verify
Read moretasks that can be done using Ansible ad-hoc commands
To archive or Zip files and folders || Achieve module To ping Remote host || ping module To install packages || yum module To manage cron job or schedule job ||cron To reboot remote machine||reboot To verify service status|| service To download a file from URL || get_url module To check uptime of host || command or shell module To copy file content to another file||copy To delete whole directory and files||file module To create directory ||file module To verify
Read moreAnsible-ADHOC commands/Day1/assignment
Write a Ansible Adhoc Commands to create a group called “deploy ansible localhost -m ansible.builtin.group -a”state=present name=deploy” -b 2. Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. ansible localhost -m ansible.builtin.user -a”state=present name=deploy-user group=deploy” -b 3. Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. ansible localhost -m yum -a”state=present name=httpd” -b 4. Write a Ansible Adhoc commands to start and enable the service
Read more1 new message
Read moreLab Session
http://15.206.127.94/ 1.Write a Ansible Adhoc Commands to create a group called “deploy ansible localhost -m ansible.builtin.group -a”name=deploy state=present” -b 2.Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. ansible localhost -m user -a”name=ramya password=abc@123 groups=deploy state=present shell=/bin/bash” -b 3 . Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. ansible localhost -m yum -a”state=present name=httpd” -b 4 . Write a Ansible Adhoc commands to start
Read moreAnsible Adhoc Commands Assignment
1.ansible localhost -m group -a” name=deploy state=present” -b 2.ansible localhost -m user -a “name=deploy-user group=deploy state=present” -b 3.ansible localhost -m yum -a”state=present name=httpd” -b 4.ansible localhost -m service -a”name=httpd ” -b 5.ansible localhost -m copy -a”dest=/var/www/html src=index1.html” -b 6.ansible localhost -m copy -a”dest=/var/www/html src=second.html” -b 7. ansible localhost -m yum -a”state=present name=git” -b 9.ansible localhost -m reboot 10.ansible localhost -m file -a”state=touch path=/opt/devopsschool.txt” -b ansible localhost -m file -a”state=absent path=/opt/devopsschool.txt” -b
Read moreWhy Ansible
Assignment 1 What is Ansible? Ansible is a configuration management for the server. Why Ansible? Easy to Learn Platform independent Idempotent Continuous deployment. Network Automation. Configuration Management. Architecture of Ansible:
Read moreAnsible Adhoc Commands Lab and Excercise – Part 1
Write a Ansible Adhoc Commands to create a group called “deploy Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell.  Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Write a Ansible Adhoc commands to start and enable the service named “httpd” Write a Ansible commands to copy a file called “second.html” in /var/www/html/second.html with some dummy html contents.
Read moreWhat is Ansible and how it works?
What is ansible? Ansible is a server configuration management tool . Benefits of Ansible? Free and open source Easy to learn, deploy and debug. Platform independent. Ansible is Idempotent . Architecture of Ansible
Read moreWhat is Ansible and How it works? Explained with Images
What is Ansible? Ansible is a tool which manages configuration of servers. Management includes hardware and software management of server. Why Ansible? Easy to learn compare to java, python, ruby etc Its platform Independent Ansible has feature – IDEOMPOTENT Its open source tool Architecture of Ansible Ansible communicate with remote servers (ARS) through Ansible Control Server (ACS)
Read more