Skip to content

Commit

Permalink
Type-safe use of DTSVER
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Apr 27, 2019
1 parent 6982a34 commit d593486
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,20 @@
- base_gcc

- name: enable legacy software collections
when: collections_enabled and DTSVER < 6
when: collections_enabled and DTSVER|int < 6 and ansible_os_family == 'RedHat'
command: "yum-config-manager --enable centos-sclo-rh-testing"
changed_when: no
tags:
- base_gcc

- name: configure legacy software collection
when: collections_enabled and DTSVER < 6
when: collections_enabled and DTSVER|int == 3
set_fact:
cplusplus_dts_rpms:
- "{{ cplusplus_devtoolset }}-gcc-c++"

- name: configure legacy software collection
when: collections_enabled and DTSVER|int < 6
set_fact:
cplusplusrpms:
- autoconf
Expand Down

0 comments on commit d593486

Please sign in to comment.