[ANSIBLE] Add 'nfs' playbook 78/121878/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Fri, 11 Jun 2021 11:16:10 +0000 (13:16 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Fri, 11 Jun 2021 11:16:10 +0000 (13:16 +0200)
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>
ansible/application.yml
ansible/nfs.yml [new file with mode: 0644]
ansible/site.yml

index 02c654f..6647f3b 100644 (file)
@@ -1,16 +1,4 @@
 ---
-- 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
-
 - name: Install Helm application {{ app_name }} into offline Kubernetes cluster
   hosts: infrastructure
   roles:
diff --git a/ansible/nfs.yml b/ansible/nfs.yml
new file mode 100644 (file)
index 0000000..380d29b
--- /dev/null
@@ -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
index 6f00a9a..3f08ec6 100644 (file)
@@ -16,7 +16,7 @@
 - import_playbook: resources.yml
 - import_playbook: infrastructure.yml
 - import_playbook: rke.yml
+- import_playbook: nfs.yml
 - import_playbook: kube_prometheus.yml
   when: kube_prometheus_stack_enabled
 - import_playbook: application.yml
-