aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/tasks
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-02-15 22:14:45 -0500
committergrakiss <grakiss.wanglei@huawei.com>2016-02-24 01:54:19 -0500
commite72bc045fd467a442a0ffb1c78e710a270a59dfa (patch)
treede36cb10caf65af125d3815733c92abd561d8866 /deploy/adapters/ansible/roles/storage/tasks
parent00ba12cbc900cb1cb38bee938544cc95583ab416 (diff)
Support version Liberty of OpenStack for CENTOS7
JIRA:COMPASS-315 -Support version Liberty of OpenStack for CENTOS7 Change-Id: I81abbb37a295a0ea733398ad1f278bafc3525d87 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/tasks')
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/storage/tasks/main.yml b/deploy/adapters/ansible/roles/storage/tasks/main.yml
index 0a27be5d..b48e6769 100755
--- a/deploy/adapters/ansible/roles/storage/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/storage/tasks/main.yml
@@ -42,6 +42,13 @@
tags:
- storage
+- name: set autostart file for centos
+ copy: src=storage.service dest=/usr/lib/systemd/system/storage.service mode=0755
+ when: ansible_os_family == "RedHat"
+ tags:
+ - storage
+
+
- name: enable service
service: name=storage enabled=yes
tags: