summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/monitor/tasks
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2015-09-12 13:55:40 +0800
committerbaigk <baiguoku@huawei.com>2015-09-12 16:28:25 +0800
commit6fec88cd73e388a14dcfdad812781667e5f9a668 (patch)
treefbe8e182526c29a83e1f9f5d97d0ac265191433e /deploy/adapters/ansible/roles/monitor/tasks
parent6ec9d66787b01e710de5514f377830a94e32a4d2 (diff)
bug fix:support centos 7.1 deployment
JIRA: COMPASS-46 Change-Id: I4003c843b34509d44b45d0235fdf66d9114ff8d5 Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/monitor/tasks')
-rw-r--r--deploy/adapters/ansible/roles/monitor/tasks/main.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/monitor/tasks/main.yml b/deploy/adapters/ansible/roles/monitor/tasks/main.yml
index e5b93f39..6e446944 100644
--- a/deploy/adapters/ansible/roles/monitor/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/monitor/tasks/main.yml
@@ -1,11 +1,13 @@
---
+- include_vars: "{{ ansible_os_family }}.yml"
+
- name: copy service check file
- copy: src=check_service.sh dest=/usr/local/bin/check_service.sh mode=0777
+ copy: src=check_{{ ansible_os_family }}_service.sh dest=/usr/local/bin/check_service.sh mode=0777
- name: copy cron file
- copy: src=root dest=/var/spool/cron/crontabs/root mode=0600
+ copy: src=root dest={{ cron_path }}/root mode=0600
- name: restart cron
- service: name=cron state=restarted
+ service: name={{ cron }} state=restarted