summaryrefslogtreecommitdiffstats
path: root/ansible/nfs.yml
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-11 13:16:10 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-29 10:44:39 +0200
commit91bbe070fa15a51d19adb0884f401b553042c171 (patch)
treeadb45599f907dad51140236eb43a9e07344599b3 /ansible/nfs.yml
parent2073c3666ff00e3a90c7814ed55241a07b5f483b (diff)
[ANSIBLE] Add 'nfs' playbook
NFS server and mount is extracted into its own playbook. It has to be provisioned before kube-prometheus stack. Change-Id: I98942db4bcd7b16565d27f13d9a034b987467a61 Issue-ID: INT-1926 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/nfs.yml')
-rw-r--r--ansible/nfs.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/nfs.yml b/ansible/nfs.yml
new file mode 100644
index 00000000..380d29b1
--- /dev/null
+++ b/ansible/nfs.yml
@@ -0,0 +1,12 @@
+---
+- name: Setup nfs server
+ hosts: nfs-server
+ roles:
+ - role: nfs
+ when: groups.kubernetes | length > 1
+
+- name: Setup nfs mounts
+ hosts: kubernetes:!nfs-server
+ roles:
+ - role: nfs
+ when: groups.kubernetes | length > 1