Deploy nginx using Ansible

0 votes
How do I deploy Nginx using Ansible?
Jan 8, 2019 in Ansible by Ali
• 10,660 points
108 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, 2019 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
153 views
+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,810 points
1,001 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
97 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,400 points
302 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, 2019 in Ansible by Dikinson
752 views
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
1,398 views