Updated deploy nfs-client-provisioner task
changed_when: true
tags: init
-- name: Start NFS Client Provisioner
- command: "helm install stable/nfs-client-provisioner --set nfs.server='{{ nfs_server }}' --set nfs.path='{{ nfs_path }}' --generate-name"
+- name: Start NFS Client Provisioner using NFS on manager node
+ command: "helm install stable/nfs-client-provisioner --set nfs.server='{{ nfs_server_manager_node }}' --set nfs.path='{{ nfs_share_dir }}' --generate-name"
changed_when: true
- when: "'nfs-client-provisioner' not in k8s_pods.stdout"
+ when:
+ - "'nfs-client-provisioner' not in k8s_pods.stdout"
+ - not hostvars['127.0.0.1']['powervault_status']
+ tags: init
+
+- name: Start NFS Client Provisioner using NFS on NFS Node
+ command: "helm install stable/nfs-client-provisioner --set nfs.server='{{ nfs_server_nfs_node }}' --set nfs.path='{{ me4_nfs_share_k8s }}' --generate-name"
+ changed_when: true
+ when:
+ - "'nfs-client-provisioner' not in k8s_pods.stdout"
+ - hostvars['127.0.0.1']['powervault_status']
tags: init
- name: Set NFS-Client Provisioner as DEFAULT StorageClass
