From b348af1dcbd230d0f80914053c675f4e6c5635a5 Mon Sep 17 00:00:00 2001 From: fgierlinger <2966031+fgierlinger@users.noreply.github.com> Date: Fri, 24 Apr 2020 18:46:45 +0200 Subject: [PATCH 1/3] Add centos8 to travis build matrix --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index c66232a..505115a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ env: global: - ROLE_NAME: pip matrix: + - MOLECULE_DISTRO: centos8 - MOLECULE_DISTRO: centos7 - MOLECULE_DISTRO: fedora29 - MOLECULE_DISTRO: ubuntu1804 From 080746e32a3b2365fa2ae066244ac26742b7a7c6 Mon Sep 17 00:00:00 2001 From: fgierlinger <2966031+fgierlinger@users.noreply.github.com> Date: Fri, 24 Apr 2020 18:46:45 +0200 Subject: [PATCH 2/3] Include OS specific variables The package naming for pip has changed in centos8. Previously the pip package was called python-pip for python2 and python3-pip for python3. In CentOS 8 the packages are now called python2-pip for python2 ad python3-pip for python3. --- tasks/main.yml | 7 +++++++ vars/CentOS-8.yml | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 vars/CentOS-8.yml diff --git a/tasks/main.yml b/tasks/main.yml index dda7fac..e4de8c7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,11 @@ --- +- name: Gather OS specific variables. + include_vars: "{{ item }}" + with_first_found: + - "vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" + - "vars/{{ ansible_distribution }}.yml" + - "defaults/main.yml" + - name: Ensure Pip is installed. package: name: "{{ pip_package }}" diff --git a/vars/CentOS-8.yml b/vars/CentOS-8.yml new file mode 100644 index 0000000..2f63896 --- /dev/null +++ b/vars/CentOS-8.yml @@ -0,0 +1,2 @@ +--- +pip_package: python3-pip From 212fff0df36fd63839b3d4b7a1dd5e81d1e406b6 Mon Sep 17 00:00:00 2001 From: fgierlinger <2966031+fgierlinger@users.noreply.github.com> Date: Sun, 26 Apr 2020 13:15:36 +0200 Subject: [PATCH 3/3] galaxy: add Centos 8 and 7 to supported platforms --- meta/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/main.yml b/meta/main.yml index 908669d..a67e2bb 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -22,6 +22,10 @@ galaxy_info: - name: Ubuntu versions: - all + - name: CentOS + versions: + - 7 + - 8 galaxy_tags: - system - server