Deploy nginx using Ansible

0 votes
How do I deploy Nginx using Ansible?
Jan 8, 2019 in Ansible by Ali
• 11,320 points

1 answer to this question.

0 votes

Follow these steps:

  • Use the following command in your control machine:
ansible test-servers -m yum -a “name=nginx state=installed

  • Check if it is installed in your node machine, type the following command in your node:
ps waux | grep nginx

Grep Nginx - Install Ansible - Edureka

You can see a few processes are running with the PID 16387 and 772 which shows that Nginx has been installed and it is ready to get started.

answered Jan 8, 2019 by Barbara

Related Questions In Ansible

+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

answered Jun 29, 2020 in Ansible by MD
• 95,240 points
0 votes
1 answer

How can I create a new user using ansible ploybook?

You're switching from the root user. Root ...READ MORE

answered Mar 29, 2018 in Ansible by DareDev
• 6,890 points
+1 vote
3 answers
0 votes
1 answer

Using multiple config files using same template in a role in ansible

Go through this include_role module: tasks: - ...READ MORE

answered Jun 5, 2018 in Ansible by DareDev
• 6,890 points
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
0 votes
2 answers

How do i install Ansible using virtualenv

Adding to @Mohit's answer,  For CentOS and RHEL: sudo ...READ MORE

answered Jan 10, 2019 in Ansible by Dikinson
0 votes
1 answer

Installing nodejs using ansible

Your role should look something like this: - ...READ MORE

answered Mar 15, 2019 in Ansible by Hari