summaryrefslogtreecommitdiffstats
path: root/ansible
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-11 13:16:10 +0200
commitcacb2eb304fffa0d42afa92891b77130882de7b6 (patch)
tree4fe2c47cb4bc96a20839e8b0d24cdfc193fc267b /ansible
parent5f644b97f6a309a37a5a94e0cee8898491004843 (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')
-rw-r--r--ansible/application.yml12
-rw-r--r--ansible/nfs.yml12
-rw-r--r--ansible/site.yml2
3 files changed, 13 insertions, 13 deletions
diff --git a/ansible/application.yml b/ansible/application.yml
index 02c654f2..6647f3b3 100644
--- a/ansible/application.yml
+++ b/ansible/application.yml
@@ -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
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
diff --git a/ansible/site.yml b/ansible/site.yml
index 6f00a9a2..3f08ec65 100644
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -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
-