aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/storage')
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/files/loop.yml1
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/tasks/main.yml5
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/tasks/real.yml2
3 files changed, 6 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/storage/files/loop.yml b/deploy/adapters/ansible/roles/storage/files/loop.yml
index 776cf8cd..32088de7 100755
--- a/deploy/adapters/ansible/roles/storage/files/loop.yml
+++ b/deploy/adapters/ansible/roles/storage/files/loop.yml
@@ -1,3 +1,4 @@
+---
##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
diff --git a/deploy/adapters/ansible/roles/storage/tasks/main.yml b/deploy/adapters/ansible/roles/storage/tasks/main.yml
index be712c67..b4263d6b 100755
--- a/deploy/adapters/ansible/roles/storage/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/storage/tasks/main.yml
@@ -43,7 +43,10 @@
- storage
- name: set autostart file for centos
- copy: src=storage.service dest=/usr/lib/systemd/system/storage.service mode=0755
+ copy:
+ src: storage.service
+ dest: /usr/lib/systemd/system/storage.service
+ mode: 0755
when: ansible_os_family == "RedHat"
tags:
- storage
diff --git a/deploy/adapters/ansible/roles/storage/tasks/real.yml b/deploy/adapters/ansible/roles/storage/tasks/real.yml
index e99f185e..7845a235 100755
--- a/deploy/adapters/ansible/roles/storage/tasks/real.yml
+++ b/deploy/adapters/ansible/roles/storage/tasks/real.yml
@@ -9,7 +9,7 @@
---
- name: destroy GPT lable
shell: dd if=/dev/urandom of={{ physical_device }} bs=4M count=1
- ignore_errors: True
+ ignore_errors: "True"
- name: create physical and group volumes
lvg: vg=storage-volumes pvs={{ physical_device }}