You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/roles/ansible-role-git/tasks/main.yml

23 lines
719 B

---
- name: Ensure git is installed (RedHat).
yum:
name: "{{ item }}"
state: installed
enablerepo: "{{ git_enablerepo }}"
with_items: "{{ git_packages }}"
when: (git_install_from_source == false) and (ansible_os_family == 'RedHat')
- name: Update apt cache (Debian).
apt: update_cache=yes cache_valid_time=86400
when: ansible_os_family == 'Debian'
- name: Ensure git is installed (Debian).
apt:
name: "{{ item }}"
state: installed
with_items: "{{ git_packages }}"
when: (git_install_from_source == false) and (ansible_os_family == 'Debian')
# Install git from source when git_install_from_source is true.
- include: install-from-source.yml
when: git_install_from_source == true