From a2a5d2917bdc9b76f45c47980d01d3c125007cda Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 26 Jun 2024 12:06:11 -0700 Subject: [PATCH] people: adjust some things for rhel9 Signed-off-by: Kevin Fenzi --- roles/people/tasks/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/roles/people/tasks/main.yml b/roles/people/tasks/main.yml index 454eadfacd..1520e862ee 100644 --- a/roles/people/tasks/main.yml +++ b/roles/people/tasks/main.yml @@ -17,10 +17,29 @@ - tree # requested in ticket 5148 - mod_ssl - python36-jinja2 # needed now for make-people-page.py + when: inventory_hostname.startswith('people02') tags: - packages - people +# +# Install packages needed for fedora people (rhel9) +# +- name: install packages needed for fedora people + package: name={{ item }} state=present + with_items: + - cvs + - git + - mercurial + - lftp + - quota + - nano + - tree # requested in ticket 5148 + - mod_ssl + when: inventory_hostname.startswith('people01') + tags: + - packages + - people - name: install main httpd config template: src=people.conf dest=/etc/httpd/conf.d/people.conf @@ -149,6 +168,7 @@ register: gitcontext check_mode: no changed_when: false + when: inventory_hostname.startswith('people02') tags: - config - selinux @@ -156,6 +176,7 @@ - name: set the SELinux policy for the planet dir command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?" when: gitcontext.stdout.find('httpd_sys_content_t') == -1 + when: inventory_hostname.startswith('people02') tags: - config - selinux