contrib/test/int: build parallel from sources in CentOS
CentOS doesn't have a packaged version of parallel. Build from source as
we do for RHEL.
package:
name: parallel
state: present
- when: (supports_python3 is not defined or not supports_python3) and ansible_distribution in ['Fedora', 'CentOS']
+ when: (supports_python3 is not defined or not supports_python3) and ansible_distribution in ['Fedora']
- name: install parallel package for Fedora > 30
shell: sudo yum install -y parallel
- when: supports_python3 is defined and supports_python3 and ansible_distribution in ['Fedora', 'CentOS']
+ when: supports_python3 is defined and supports_python3 and ansible_distribution in ['Fedora']
- name: download parallel sources
unarchive:
src: https://ftp.gnu.org/gnu/parallel/parallel-20190322.tar.bz2
dest: "{{ ansible_env.HOME }}"
remote_src: yes
- when: ansible_distribution in ['RedHat']
+ when: ansible_distribution in ['RedHat', 'CentOS']
- name: install parallel from sources
shell: |
ln -s /usr/bin/parallel /usr/bin/sem
args:
chdir: "{{ ansible_env.HOME }}/parallel-20190322"
- when: ansible_distribution in ['RedHat']
+ when: ansible_distribution in ['RedHat', 'CentOS']
