From d7389f575d778ed59597a21735db9774290393cb Mon Sep 17 00:00:00 2001 From: dotdiego Date: Tue, 6 Sep 2022 19:57:52 +0200 Subject: [PATCH] fix: applying PR#302 comments --- vars/RedHat.yml | 10 +--------- vars/RedHat8.yml | 7 ------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 vars/RedHat8.yml diff --git a/vars/RedHat.yml b/vars/RedHat.yml index e4e1d447..873a600c 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -2,15 +2,7 @@ # File: vars/RedHat.yml - Red Hat vars for Vault vault_os_packages: - - "{% if ( ansible_distribution == 'Fedora' and ansible_distribution_version is version('28', '<') ) or \ - ( ansible_distribution == 'CentOS' and ansible_distribution_version is version('8', '<') ) or \ - ( ansible_distribution == 'Amazon' and ansible_distribution_version is version('3', '<') ) or \ - ( ansible_distribution == 'OracleLinux' and ansible_distribution_version is version('8', '<') ) \ - %}\ - libselinux-python\ - {% else %}\ - python3-libselinux\ - {% endif %}" + - "{{ 'libselinux-python' if ansible_python_version is version('3', '<') else 'python3-libselinux' }}" - git - unzip diff --git a/vars/RedHat8.yml b/vars/RedHat8.yml deleted file mode 100644 index 200b97ce..00000000 --- a/vars/RedHat8.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# File: vars/RedHat8.yml - Red Hat vars for Vault - -vault_os_packages: - - python3-libselinux - - git - - unzip