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, 2019 in Ansible by Neha
23,653 views

1 answer to this question.

+1 vote

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, 2019 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, 2019 in Ansible by Kush
8,624 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, 2019 in Ansible by Janice
1,208 views
0 votes
1 answer

How to install httpd web server in remote node using Ansible?

Hi@akhtar, You need to use the package module in Ansible. ...READ MORE

answered Jul 30, 2020 in Ansible by MD
• 95,460 points
2,596 views
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 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, 2019 in Ansible by Dikinson
5,581 views
0 votes
1 answer

Deploy nginx using Ansible

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

answered Jan 8, 2019 in Ansible by Barbara
1,047 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP