Skip to content

Commit 672be72

Browse files
committed
desired state on collections_enabled
1 parent 67cf375 commit 672be72

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
@@ -45,6 +45,14 @@
4545
tags:
4646
- git
4747

48+
- name: Disable Git software collection
49+
file:
50+
path: /etc/profile.d/rh-git.sh
51+
state: absent
52+
when: not collections_enabled and ansible_os_family == 'RedHat'
53+
tags:
54+
- git
55+
4856
- name: Install Git from yum repo
4957
become: yes
5058
when: not collections_enabled and ansible_os_family == 'RedHat'

0 commit comments

Comments
 (0)