summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/tasks')
-rwxr-xr-xdeploy/adapters/ansible/roles/storage/tasks/main.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/storage/tasks/main.yml b/deploy/adapters/ansible/roles/storage/tasks/main.yml
index b4263d6b..b054be9e 100755
--- a/deploy/adapters/ansible/roles/storage/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/storage/tasks/main.yml
@@ -51,9 +51,17 @@
tags:
- storage
-
-- name: enable service
+- name: add to boot scripts
shell: update-rc.d storage defaults
+ when: ansible_os_family == "Debian"
+ tags:
+ - storage
+
+- name: add to boot scripts
+ shell: |
+ chkconfig --add storage;
+ chkconfig --level 2345 storage on;
+ when: ansible_os_family == 'RedHat'
tags:
- storage