From bf153923a226a2068cd5956ce88a9208ffac76df Mon Sep 17 00:00:00 2001 From: gjmzj Date: Thu, 11 Jul 2019 23:30:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=89=A7=E8=A1=8Croles/cluster-storage/c?= =?UTF-8?q?luster-storage.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/cluster-storage/cluster-storage.yml | 2 +- roles/cluster-storage/tasks/alicloud-nas.yml | 2 +- roles/cluster-storage/tasks/nfs-client.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/cluster-storage/cluster-storage.yml b/roles/cluster-storage/cluster-storage.yml index c98daf6..1fd8ca5 100644 --- a/roles/cluster-storage/cluster-storage.yml +++ b/roles/cluster-storage/cluster-storage.yml @@ -1,3 +1,3 @@ -- hosts: deploy +- hosts: localhost roles: - cluster-storage diff --git a/roles/cluster-storage/tasks/alicloud-nas.yml b/roles/cluster-storage/tasks/alicloud-nas.yml index 35804f7..a91f894 100644 --- a/roles/cluster-storage/tasks/alicloud-nas.yml +++ b/roles/cluster-storage/tasks/alicloud-nas.yml @@ -15,4 +15,4 @@ # shell: "{{ bin_dir }}/kubectl apply -f {{ base_dir }}/manifests/storage/alicloud-nas/alicloud-disk.yaml" - name: 开始部署alicloud-nas动态存储 - shell: "{{ bin_dir }}/kubectl apply -f /opt/kube/kube-system/storage/alicloud-nas/{{ storage.aliyun_nas.controller_name }}.yaml" + shell: "{{ base_dir }}/bin/kubectl apply -f /opt/kube/kube-system/storage/alicloud-nas/{{ storage.aliyun_nas.controller_name }}.yaml" diff --git a/roles/cluster-storage/tasks/nfs-client.yml b/roles/cluster-storage/tasks/nfs-client.yml index 07905d9..6862a50 100644 --- a/roles/cluster-storage/tasks/nfs-client.yml +++ b/roles/cluster-storage/tasks/nfs-client.yml @@ -7,4 +7,4 @@ dest: "{{ base_dir }}/manifests/storage/nfs/{{ storage.nfs.provisioner_name }}.yaml" - name: 开始部署nfs-client动态存储 - shell: "{{ bin_dir }}/kubectl apply -f {{ base_dir }}/manifests/storage/nfs/{{ storage.nfs.provisioner_name }}.yaml" + shell: "{{ base_dir }}/bin/kubectl apply -f {{ base_dir }}/manifests/storage/nfs/{{ storage.nfs.provisioner_name }}.yaml"