Install git using Ansible

0 votes
I'm pretty new to ansible, How should I write my playbook in order to install Git?
Mar 15 in Ansible by Neha
54 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

Installing git using ansible is pretty simple. Just write a role, like this:

- name: Install git
  apt:
    name: git
    state: present
    update_cache: yes
answered Mar 15 by Haider

Related Questions In Ansible

0 votes
1 answer

Install Ansible using cygwin

Follow these steps to install ansible using ...READ MORE

answered Jan 10 in Ansible by Kush
543 views
0 votes
1 answer
0 votes
1 answer

Install mean stack on ubuntu using ansible

You can have three roles  under /etc/ansible/roles -prerequisites -mongodb -nodejs under /etc/ansible ...READ MORE

answered Mar 15 in Ansible by Janice
23 views
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
+13 votes
2 answers
0 votes
1 answer
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
41 views
0 votes
1 answer

Deploy nginx using Ansible

Follow these steps: Use the following command in ...READ MORE

answered Jan 8 in Ansible by Barbara
21 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.