Deploy nginx using Ansible

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

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,520 points
68 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,520 points
174 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,000 points
41 views
0 votes
1 answer
+13 votes
2 answers
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
40 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
30 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.