2018-08-05 22:52:24 +08:00
|
|
|
- name: 准备alicloud-nas配置目录
|
|
|
|
file: name={{ base_dir }}/manifests/storage/alicloud-nas state=directory
|
|
|
|
|
|
|
|
- name: 生成alicloud-nas动态存储配置
|
|
|
|
template:
|
|
|
|
src: alicloud-nas/alicloud-nas.yaml.j2
|
2018-08-12 20:02:47 +08:00
|
|
|
dest: "{{ base_dir }}/manifests/storage/alicloud-nas/{{ storage.aliyun_nas.controller_name }}.yaml"
|
2018-08-05 22:52:24 +08:00
|
|
|
|
|
|
|
- name: 复制alicloud-disk配置
|
|
|
|
copy:
|
|
|
|
src: alicloud-disk.yaml
|
|
|
|
dest: "{{ base_dir }}/manifests/storage/alicloud-nas/alicloud-disk.yaml"
|
|
|
|
|
|
|
|
- name: 开始部署alicloud-disk存储
|
|
|
|
shell: "{{ bin_dir }}/kubectl apply -f {{ base_dir }}/manifests/storage/alicloud-nas/alicloud-disk.yaml"
|
|
|
|
|
|
|
|
- name: 开始部署alicloud-nas动态存储
|
2018-08-12 20:02:47 +08:00
|
|
|
shell: "{{ bin_dir }}/kubectl apply -f {{ base_dir }}/manifests/storage/alicloud-nas/{{ storage.aliyun_nas.controller_name }}.yaml"
|