From ce9cba08a89136ad8b1385e4f2a87d2795779d78 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 16 Mar 2021 08:58:38 +0000 Subject: [PATCH] Remove references to unsupported operating systems All references to Gentoo, SUSE, Debian stretch and Centos-7 are removed. Conditional tasks, ternary operators and variables are simplified where possible OS specific variables files are generalised where possible Change-Id: I214f35cfff5fa9dd703733f795d6a7e414d729ca --- meta/main.yml | 9 +++------ tasks/main.yml | 4 ---- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 5a9df0c..3695e14 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -22,17 +22,14 @@ galaxy_info: platforms: - name: Debian versions: - - stretch + - buster - name: Ubuntu versions: - - xenial - bionic + - focal - name: EL versions: - - 7 - - name: opensuse - versions: - - 15 + - 8 categories: - systemd - development diff --git a/tasks/main.yml b/tasks/main.yml index 79c41dc..ea4a969 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -36,7 +36,6 @@ with_items: "{{ systemd_networkd_package_repos_keys | selectattr('keyfile','defined') | list }}" when: - ansible_facts['os_family'] | lower == 'redhat' - - ansible_facts['distribution_major_version'] is version('8', '>=') - name: Ensure GPG keys have the correct SELinux contexts applied command: restorecon -Rv /etc/pki/rpm-gpg/ @@ -44,7 +43,6 @@ changed_when: false when: - ansible_facts['os_family'] | lower == 'redhat' - - ansible_facts['distribution_major_version'] is version('8', '>=') # Handle gpg keys manually - name: Install gpg keys @@ -61,7 +59,6 @@ delay: 2 when: - ansible_facts['os_family'] | lower == 'redhat' - - ansible_facts['distribution_major_version'] is version('8', '>=') # NOTE(jrosser) this repo is configured with the path to the first gpg key provided - name: Install the EPEL repository @@ -76,7 +73,6 @@ includepkgs: 'systemd-networkd' when: - ansible_facts['os_family'] | lower == 'redhat' - - ansible_facts['distribution_major_version'] is version('8', '>=') register: install_epel_repo until: install_epel_repo is success retries: 5