summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml')
-rw-r--r--ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml b/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
new file mode 100644
index 00000000..b55842ac
--- /dev/null
+++ b/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
@@ -0,0 +1,16 @@
+---
+- name: Make sure the target dirs (where data is put i.e. what the whole resource-data role is testing) are empty at first
+ file:
+ path: "{{ item }}"
+ state: absent
+ loop:
+ - aux_data_path
+ - app_data_path
+
+- name: Install nfs-utils
+ package:
+ name: nfs-utils
+ state: present
+ when:
+ - resources_on_nfs is defined
+ - resources_on_nfs