From 2cd29207f3e68e253e99774a05b25e10dddc9fc9 Mon Sep 17 00:00:00 2001
From: "R.Sicart" <roger.sicart@gmail.com>
Date: Fri, 16 Sep 2022 13:38:22 +0200
Subject: [PATCH] Fix: devel requires python 3.9 in roles CI (#444)

* Fix: devel requires python 3.9

Package 'ansible-core' requires a different Python: 3.8.13 not in '>=3.9'

* Exclude older version of Ansible when testing Python 3.9
---
 .github/workflows/ansible-test-roles.yml | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ansible-test-roles.yml b/.github/workflows/ansible-test-roles.yml
index bda6986..34bee52 100644
--- a/.github/workflows/ansible-test-roles.yml
+++ b/.github/workflows/ansible-test-roles.yml
@@ -30,15 +30,24 @@ jobs:
         python:
           - 3.6
           - 3.8
+          - 3.9
         exclude:
-          - python: 3.8
-            ansible: stable-2.11
           - python: 3.6
             ansible: stable-2.12
           - python: 3.6
             ansible: stable-2.13
           - python: 3.6
             ansible: devel
+          - python: 3.8
+            ansible: stable-2.11
+          - python: 3.8
+            ansible: stable-2.13
+          - python: 3.8
+            ansible: devel
+          - python: 3.9
+            ansible: stable-2.11
+          - python: 3.9
+            ansible: stable-2.12
 
     steps: