Skip to content

Commit

Permalink
shshs
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinkr77 committed Sep 26, 2023
1 parent 9a13cb1 commit 3d3aca9
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@

- name: Download git source
get_url:
url: https://www.kernel.org/pub/software/scm/git/git-2.39.0.tar.xz
dest: /tmp/git-2.39.0.tar.xz
url: https://www.kernel.org/pub/software/scm/git/git-2.41.0.tar.xz
dest: /tmp/git-2.41.0.tar.xz
mode: 0440
checksum: sha256:ba199b13fb5a99ca3dec917b0bd736bc0eb5a9df87737d435eddfdf10d69265b
checksum: sha256:e748bafd424cfe80b212cbc6f1bbccc3a47d4862fb1eb7988877750478568040
validate_certs: false
retries: 3
delay: 5
Expand All @@ -46,7 +46,7 @@

- name: Extract git source
unarchive:
src: /tmp/git-2.39.0.tar.xz
src: /tmp/git-2.41.0.tar.xz
dest: /tmp/
extra_opts:
- --no-same-owner
Expand All @@ -65,7 +65,7 @@
tags: git_source

- name: Compile and install git from source on RHEL/CentOS6
shell: cd /tmp/git-2.39.0 && ./configure --with-curl={{ curl_install_dir.stdout }} --prefix=/usr/local --without-tcltk && make clean && make -j {{ ansible_processor_vcpus }} && make install
shell: cd /tmp/git-2.41.0 && ./configure --with-curl={{ curl_install_dir.stdout }} --prefix=/usr/local --without-tcltk && make clean && make -j {{ ansible_processor_vcpus }} && make install
become: yes
when:
- (git_installed.rc != 0 ) or (git_installed.rc == 0 and git_version.stdout is version_compare('2.31', operator='lt'))
Expand All @@ -74,7 +74,7 @@
tags: git_source

- name: Compile and install git from source on everything else
shell: cd /tmp/git-2.39.0 && ./configure --prefix=/usr/local --without-tcltk && make clean && make -j {{ ansible_processor_vcpus }} && make install
shell: cd /tmp/git-2.41.0 && ./configure --prefix=/usr/local --without-tcltk && make clean && make -j {{ ansible_processor_vcpus }} && make install
become: yes
when:
- (git_installed.rc != 0 ) or (git_installed.rc == 0 and git_version.stdout is version_compare('2.31', operator='lt'))
Expand All @@ -84,7 +84,7 @@
tags: git_source

- name: Compile and install git from source on s390x
shell: cd /tmp/git-2.39.0 && ./configure --prefix=/usr/local --without-tcltk && make -j {{ ansible_processor_cores }} && make install
shell: cd /tmp/git-2.41.0 && ./configure --prefix=/usr/local --without-tcltk && make -j {{ ansible_processor_cores }} && make install
become: yes
when:
- (git_installed.rc != 0 ) or (git_installed.rc == 0 and git_version.stdout is version_compare('2.31', operator='lt'))
Expand Down Expand Up @@ -121,7 +121,7 @@
path: "{{ item }}"
state: absent
with_items:
- /tmp/git-2.39.0
- /tmp/git-2.39.0.tar.xz
- /tmp/git-2.41.0
- /tmp/git-2.41.0.tar.xz
failed_when: false
tags: git_source

0 comments on commit 3d3aca9

Please sign in to comment.