diff --git a/configure-host-oel7/files/rlwrap-0.42-1.el7.x86_64.rpm b/configure-host-oel7/files/rlwrap-0.42-1.el7.x86_64.rpm new file mode 100644 index 0000000..58c7981 Binary files /dev/null and b/configure-host-oel7/files/rlwrap-0.42-1.el7.x86_64.rpm differ diff --git a/configure-host-oel7/tasks/rlwrap.yml b/configure-host-oel7/tasks/rlwrap.yml index 793b617..7349aa8 100644 --- a/configure-host-oel7/tasks/rlwrap.yml +++ b/configure-host-oel7/tasks/rlwrap.yml @@ -1,13 +1,18 @@ --- # installation de l'utilitaire rlwrap pour oracle - - name: Copy du rpm rlwrap vers le serveur - copy: src=rlwrap-0.44-1.el8.x86_64.rpm dest=/tmp/rlwrap-0.44-1.el8.x86_64.rpm owner=root mode=644 + - name: Copy du rpm rlwrap OL8 vers le serveur + copy: src=rlwrap-0.44-1.el8.x86_64.rpm dest=/tmp/rlwrap.x86_64.rpm owner=root mode=644 + when: ansible_distribution_major_version == '8' + + - name: Copy du rpm rlwrap OL7 vers le serveur + copy: src=rlwrap-0.42-1.el7.x86_64.rpm dest=/tmp/rlwrap.x86_64.rpm owner=root mode=644 + when: ansible_distribution_major_version == '7' - name: Install rlwrap rpm from a local file yum: - name: /tmp/rlwrap-0.44-1.el8.x86_64.rpm + name: /tmp/rlwrap.x86_64.rpm state: present - name: suppression du rpm rlwrap du serveur - file: path=/tmp/rlwrap-0.44-1.el8.x86_64.rpm state=absent \ No newline at end of file + file: path=/tmp/rlwrap.x86_64.rpm state=absent \ No newline at end of file