you know, you're making it really easy to hate python 3

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2019-12-05 21:09:57 +00:00 committed by Pierre-Yves Chibon
parent 5e7ba6ff52
commit 3c7bf0ad36

View file

@ -13,11 +13,28 @@
pre_tasks: pre_tasks:
- name: Install policycoreutils-python - name: install libsemanage
package: name={{item}} state=present package:
with_items: state: present
- policycoreutils-python-utils name:
- policycoreutils-python - 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. - name: Create /srv/web/ for all the goodies.
file: > file: >