Ansible Playbook Lab

Write a Ansible Playbook to create a group called “deploy” Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. Write a Ansible Playbook to install package named “httpd” in RHEL/centos. Write a Ansible Playbook to start and enable the service named “httpd” Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. Write a Ansible Playbook to reboot a self machine.

Read more

Ansible Playbook Programs

1.Write a Ansible Playbook to create a group called “deploy 2.Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. 3.Write a Ansible Playbook to install package named “httpd” in RHEL/centos 4.Write a Ansible Playbook to start and enable the service named “httpd” 5.Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. 6.Write a Ansible Playbook to reboot a self machine.

Read more

Ansible playbook Excercise

Write a Ansible Playbook to create a group called “deploy” Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. Write a Ansible Playbook to install package named “httpd” in RHEL/centos. Write a Ansible Playbook to start and enable the service named “httpd” Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. Write a Ansible Playbook to reboot a self machine.

Read more

Ansible Playbooks

Write a Ansible Playbook to create a group called “deploy” 2.Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. 3. Write a Ansible Playbook to install package named “httpd” in RHEL/centos. 4. Write a Ansible Playbook to start and enable the service named “httpd” 5. Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. 6. Write a Ansible Playbook to

Read more

PLAYBOOK – ANSIBLE

Write a Ansible Playbook to create a group called “deploy” 2. Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. 3. Write a Ansible Playbook to install package named “httpd” in RHEL/centos. 4. Write a Ansible Playbook to start and enable the service named “httpd”. 5. Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. 6. Write a Ansible Playbook

Read more

Ansible Playbook Programs

Write a Ansible Playbook to create a group called “deploy” Program 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. 3.Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Program 4 – Write a Ansible Adhoc commands to start and enable the service named “httpd” Program 5 – Write a Ansible commands to create a file called “index.html” in /var/www/html with some dummy

Read more

selfnotes-ansible/playbook

1.Write a Ansible Playbook to create a group called “deploy” 2.Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. 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” 5.Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. 6.Write a Ansible Playbook to reboot

Read more

Ansible Adhoc Commands

Write a Ansible Adhoc Commands to create a group called “deploy“ $ ansible all -m ansible.builtin.group -a”name=deploy state=present” 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 all -m ansible.builtin.user -a”name-=deploy-user shell=/bin/bash group=deploy” Write a Ansible Adhoc commands to start and enable the service named “httpd” $ansible all -m ansible.builtin.service -a “name=httpd state=started” Write a Ansible commands to install a package called “git”, “wget”. $ansible

Read more

Ansible Commands

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy“ Program 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. Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Program 4 – Write a Ansible Adhoc commands to start and enable the service named “httpd” Program 5 – Write a Ansible commands to create a file called “index.html” in

Read more

Ansible Adhoc Commands Excercise –

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 create a file called “index.html” in /var/www/html with some dummy html contents. Write a Ansible commands to

Read more

Basic Commands In Ansible

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy” $ ansible -m groupadd -a”name=deploy “ Program 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 -m usseradd -a”name=deploy-user group=deploy” 3. Ansible Adhoc commands install package named “httpd” in RHEL/centos. $ ansible localhost -m yum -a “name=httpd state=present”  4. Ansible Adhoc commands to start and enable the service named

Read more

Ansible Adhoc commands

Ansible Adhoc commands for create an 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 create a file called “index.html” in /var/www/html with some dummy html contents.  Write a Ansible commands to copy a file

Read more

Ansible Adhoc Commands For Specified Tasks

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy“ Program 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. Program3 -Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Program 4 – Write a Ansible Adhoc commands to start and enable the service named “httpd” Program 5 – Write a Ansible commands to create a file called “index.html”

Read more

Ansible Adhoc Commands

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy How to verify?$ more /etc/group | grep deploy ansible localhost -m ansible.builtin.group -a”name=deploy state=present” Program 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. How to verify?$ more /etc/passwd | grep deploy-user ansible -m user -a “name=deploy-user group=deploy shell=/bin/bash” Program 3 – Write a Ansible Adhoc commands install package named “httpd”

Read more

Ansible Adhoc commands

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy Program-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. Program 3 – Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Program 4 – Write a Ansible Adhoc commands to start and enable the service named “httpd” Program 5 – Write a Ansible commands to create a file called

Read more

Self-notes/Ansible Commands

Program 1 – Write a Ansible Adhoc Commands to create a group called “deployProgram create group deploy name=deploy 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 create user deploy-user name=deploy-user shell=/bin/bashcreate group deploy name=deploy Program 3 – Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Program 4 – Write a Ansible Adhoc commands to start and enable the

Read more

ANSIBLE ADHOC EXAMPLE COMMANDS:

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy“: ## $ ansible all -m ansible.builtin.user -a “name=deploy password=<crypted password here>” (or) ## $ ansible all -m ansible.builtin.user -a “name=deploy state=absent” How to verify?$ more /etc/ansible/group | grep deploy Program 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 all -m ansible.builtin.user -a”name=deploy-user shell=/bin/bash group=deploy” How to verify?$

Read more

Ansible Adhoc Commands Lab & Excercise

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy“ Program 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. Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Program 4 – Write a Ansible Adhoc commands to start and enable the service named “httpd” Program 5 – Write a Ansible commands to create a file called “index.html” in

Read more
1 83 84 85 86 87 332