Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Sep 10, 2020
1 parent 48c5db7 commit 711f4dd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@
name: "{{ base_git_rpms }}"
state: present
update_cache: yes
register: network_access
until: network_access is success
retries: 10
register: rhgit_install
until: rhgit_install is success
retries: 3
delay: 2
ignore_errors: true
tags:
- git
- base_git
Expand All @@ -73,7 +74,7 @@
src: "/opt/rh/{{ base_git }}/enable"
path: /etc/profile.d/rh-git.sh
state: link
when: collections_enabled|bool and ansible_os_family == 'RedHat'
when: base_git is defined and rhgit_install is success
tags:
- git
- base_git
Expand All @@ -95,8 +96,8 @@
- git

- name: Install Git from yum repo
become: yes
when: not collections_enabled|bool and ansible_os_family == 'RedHat'
become: ye
when: not collections_enabled|bool or rhgit_install is failed
yum:
name: git
state: present
Expand Down

0 comments on commit 711f4dd

Please sign in to comment.