Skip to content

Commit b4d7d36

Browse files
authored
Merge pull request #11 from dockpack/pinned
set of packages for scl git
2 parents 27e0c69 + 0f45aaa commit b4d7d36

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

defaults/main.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,3 @@ collections_enabled: false
33

44
# When collections is enabled this is set for the major versions in tasks/main.yml
55
# base_git: rh-git218
6-
7-
base_git_rpms:
8-
- "{{ base_git }}"
9-
- "{{ base_git }}-git-svn"
10-
- "{{ base_git }}-perl-Git-SVN"
11-
- "{{ base_git }}-git-cvs"
12-
- "{{ base_git }}-git-p4"

tasks/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
- ansible_os_family == 'RedHat'
3535
- ansible_distribution_major_version|int == 7
3636

37+
- name: Set git packages
38+
when: collections_enabled|bool and ansible_os_family == 'RedHat'
39+
set_fact:
40+
base_git_rpms:
41+
- "{{ base_git }}"
42+
- "{{ base_git }}-git-svn"
43+
- "{{ base_git }}-perl-Git-SVN"
44+
- "{{ base_git }}-git-cvs"
45+
- "{{ base_git }}-git-p4"
46+
3747
- name: Install Git software collection
3848
become: yes
3949
when: collections_enabled|bool and ansible_os_family == 'RedHat'

0 commit comments

Comments
 (0)