From 3c7bf0ad366ad30ba2c56ae06e04e9aff8f688a5 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Thu, 5 Dec 2019 21:09:57 +0000 Subject: [PATCH] you know, you're making it really easy to hate python 3 Signed-off-by: Rick Elrod --- playbooks/include/proxies-websites.yml | 27 +++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/playbooks/include/proxies-websites.yml b/playbooks/include/proxies-websites.yml index c7b8730521..d2b2563c1c 100644 --- a/playbooks/include/proxies-websites.yml +++ b/playbooks/include/proxies-websites.yml @@ -13,11 +13,28 @@ pre_tasks: - - name: Install policycoreutils-python - package: name={{item}} state=present - with_items: - - policycoreutils-python-utils - - policycoreutils-python + - name: install libsemanage + package: + state: present + name: + - policycoreutils-python-utils + - policycoreutils-python + tags: + - httpd + - httpd/website + when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8) or (ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora') + + - name: install libsemanage in a python3 manner + package: + state: present + name: + - python3-policycoreutils + - policycoreutils-python-utils + tags: + - httpd + - httpd/website + when: (ansible_distribution_major_version|int >= 30 and ansible_distribution == 'Fedora') or (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8) + - name: Create /srv/web/ for all the goodies. file: >