From 658e291cb40058ca53dea716c5fd4ffee108d53c Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Tue, 5 Oct 2021 23:24:24 +0100 Subject: [PATCH] Remove autoconf role Signed-off-by: Stewart X Addison --- .../roles/autoconf/tasks/main.yml | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/autoconf/tasks/main.yml diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/autoconf/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/autoconf/tasks/main.yml deleted file mode 100644 index 55959bb904..0000000000 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/autoconf/tasks/main.yml +++ /dev/null @@ -1,69 +0,0 @@ ---- -############### -# Autoconf 2.69 -############### - -- name: Test if Autoconf v2.69 is installed - shell: set -o pipefail | autoconf --version | grep autoconf | awk '{print $4}' - when: - - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") - - ansible_distribution_major_version == "6" - - ansible_architecture == "x86_64" - register: autoconf_version - tags: autoconf-2.69 - -- name: Download Autoconf v2.69 - shell: curl -o /tmp/autoconf-2.69.tar.gz https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz - when: - - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") - - ansible_distribution_major_version == "6" - - ansible_architecture == "x86_64" - - ((autoconf_version.rc == 0) and (autoconf_version.stdout is version_compare('2.69', operator='lt'))) - tags: autoconf-2.69 - -- name: Extract Autoconf v2.69 - unarchive: - src: /tmp/autoconf-2.69.tar.gz - dest: /tmp - copy: False - when: - - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") - - ansible_distribution_major_version == "6" - - ansible_architecture == "x86_64" - - ((autoconf_version.rc == 0) and (autoconf_version.stdout is version_compare('2.69', operator='lt'))) - tags: autoconf-2.69 - -- name: Build and install Autoconf v2.69 - shell: cd /tmp/autoconf-2.69 && ./configure && make && make install - when: - - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") - - ansible_distribution_major_version == "6" - - ansible_architecture == "x86_64" - - ((autoconf_version.rc == 0) and (autoconf_version.stdout is version_compare('2.69', operator='lt'))) - tags: autoconf-2.69 - -- name: Remove the older Autoconf package - yum: - name: autoconf - state: absent - when: - - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") - - ansible_distribution_major_version == "6" - - ansible_architecture == "x86_64" - - ((autoconf_version.rc == 0) and (autoconf_version.stdout is version_compare('2.69', operator='lt'))) - tags: autoconf-2.69 - -- name: Remove downloaded packages for Autoconf v2.69 - file: - path: "{{ item }}" - state: absent - with_items: - - /tmp/autoconf-2.69.tar.gz - - /tmp/autoconf-2.69 - ignore_errors: yes - when: - - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") - - ansible_distribution_major_version == "6" - - ansible_architecture == "x86_64" - - ((autoconf_version.rc == 0) and (autoconf_version.stdout is version_compare('2.69', operator='lt'))) - tags: autoconf-2.69