From 6c2991306cc9ced807ae61e774c4f61c30427bef Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 7 Jun 2022 13:30:53 -0700 Subject: [PATCH] openqa/server: only install nfs-utils when needed If there are no NFS workers, we don't need the NFS server. Signed-off-by: Adam Williamson --- roles/openqa/server/tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index 2b2cbab9f0..670beb9741 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -165,7 +165,6 @@ - git # for checking out tests/tools - jq # for checking if tests changed after template load - python3-libsemanage # for using seboolean module - - nfs-utils # for configuring/running NFS server - perl(Class::DBI::Pg) # for using postgresql DB - genisoimage # for building cloud-init ISO - policycoreutils # for loading SELinux policy module @@ -173,6 +172,15 @@ tags: - packages +- name: Install various other required packages + package: + name: + - nfs-utils # for configuring/running NFS server + state: present + when: "openqa_nfs_workers is defined" + tags: + - packages + - name: Check test directory exists with correct ownership file: path=/var/lib/openqa/share/tests/fedora state=directory owner=geekotest group=geekotest recurse=yes