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
1,520 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 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
1,259 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
84 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,810 points
128 views
+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
212 views
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
385 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
70 views