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

What is devops and how it works

Ansible is a configuration management tool where the server(s) (hardware and software)configurations can be automated. It is owned by RedHat and is open source and is written in python. It is easy to use and can run on any machine (linux or windows) ad helps in managing server(s) configuration management Ansible architecture components: 1.User —>Admin 2. ACS —> Ansible control server—> management node 3. ARS —-> Ansible Remote server (Host 1 ,2 ….n) It has 3 main components of ACS:

Read more

What is Ansible and How it works?

What is Ansible? Ansible is a cross-platform Configuration Management Tool for Server(s), which is primarily written using python. Benefits of Ansible The benefits are as follows: It is easy to learn, understand and use which makes it the choice for server config management It is Idempotent, that is, there are no additional effect if it is called more than once with the same input parameters. It is Platform Independent. Ansible-Command prompt is free. Architecture of Ansible

Read more

What is Ansible and How it works

what is ansible? It is a Tool which manage configuration of servers. Configuration of servers includes create/delete/modify file, install/uninstall packages, start/restart services etc.. Benefits of Ansible: Its free open source Tool Easy to learn and use platform independent It works for All OS .like windows, Linux Ansible modules are idempotent Architecture of Ansible: Human communicate with ansible remote servers through Ansible control server. The component Of ACS includes Tool, Ansible inventory, and ansible playbook.

Read more

Create a namespace with your name and assigne one dummy resourcesquota to it and deploy a app of mysql in your namespace.

Create a namespace with your name and assigne one dummy resourcesquota to it and deploy a app of mysql in your namespace. created the name spacekubectl create ns ajins created a ode in that name spacekubectl create deployment ajidep –image=mysql -n ajins applied the resourseskubectl apply -f rs.yaml –namespace=ajins kubectl get resourcequota mem-cpu-demo –namespace=ajinsNAME AGE REQUEST LIMITmem-cpu-demo 22s requests.cpu: 0/1, requests.memory: 0/1Gi limits.cpu: 0/2, limits.memory: 0/2Gi

Read more

How can we become a Splunk Enterprise Certified Admin?

What is Splunk Enterprise admin? Welcome to the world of Splunk enterprise administration. Nowadays, every business and organization has become Splunk is data to everything. It will give you a pre-defined learning stack on the process of managing users and authentication. It possesses the ability to command over the Splunk user, Splunk search head cluster, built-in & customer roles, and enterprise directory. In this course, you are going to learn about role-based inheritance capabilities in the form of advanced user

Read more

Kub-arch2

1057 kubectl get pod | grep manu1058 clear1059 ls1060 cp pod.yaml pod2.yaml1061 cp pod.yaml pod3.yaml1062 cp pod.yaml pod4.yaml1063 cp pod.yaml pod1.yaml1064 vi pod1.yaml1065 vi pod3.yaml1066 vi pod4.yaml1067 clear1068 kubectl apply -f pod1.yaml1069 kubectl apply -f pod2.yaml1070 vi pod2.yaml1071 kubectl apply -f pod2.yaml1072 vi pod2.yaml1073 kubectl apply -f pod2.yaml1074 vi pod3.yaml1075 kubectl apply -f pod3.yaml1076 vi pod4.yaml1077 kubectl apply -f pod4.yaml1078 kubectl get pod|grep manu1079 kubectl get pod -o wide | grep manu1080 clear1081 kubectl get pod -o wide | grep

Read more

Kubernetes Services, ClusterIP – NodePort – ALB architecture for exposing service

A kubernetes service is a group of pods running in a cluster. ClusterIP is a service which is accessible only within the Kubernetes cluster. Hence, it is the internal IP of the components inside a Kubernetes cluster. NodePort is an open port for every node in the cluster. This is accessible from outside the cluster. LoadBalancer distributes the external request among the workers of the cluster. Following commands are used to create 4 PODS using four Manifest files (pod1.yaml, pod2.yaml,

Read more
1 50 51 52 53 54 332