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 more

Ansible 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 more

tasks 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 more

Ansible-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 more

Lab 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 more

Ansible 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 more

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 more

Ansible 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 more

What 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
1 49 50 51 52 53 185