Skip to content

Commit 67cf375

Browse files
committed
desired state on collections_enabled
1 parent 240204a commit 67cf375

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
- git
3838
- base_git
3939

40+
- name: Disable Git software collection
41+
file:
42+
path: /etc/profile.d/rh-git.sh
43+
state: absent
44+
when: not collections_enabled and ansible_os_family == 'RedHat'
45+
tags:
46+
- git
47+
4048
- name: Install Git from yum repo
4149
become: yes
4250
when: not collections_enabled and ansible_os_family == 'RedHat'

0 commit comments

Comments
 (0)