Deploy nginx using Ansible

0 votes
How do I deploy Nginx using Ansible?
Jan 8 in Ansible by Ali
• 10,440 points
86 views

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 by Barbara

Related Questions In Ansible

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,810 points
144 views
0 votes
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,810 points
841 views
0 votes
1 answer

unable to build grails war on a vagrant machine using ansible

Try and run the command using shell ...READ MORE

answered Jul 2, 2018 in Ansible by ajs3033
• 7,280 points
88 views
0 votes
1 answer
+13 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,380 points
264 views
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 in Ansible by Dikinson
567 views
0 votes
1 answer

Installing nodejs using ansible

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

answered Mar 15 in Ansible by Hari
1,216 views