aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/memcached/handlers
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2016-03-17 06:33:30 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-03-17 06:33:30 +0000
commitf41f2bfd8ed689cdbf01de6c003c8bec488f75a0 (patch)
tree959f19bd1b0259b5bea0e0868ac559324a286b55 /deploy/adapters/ansible/roles/memcached/handlers
parentb270574bd3eb3af1e84a3d8b45bf9f745e56e1fc (diff)
parent43dcf3ba2ed1a0f9254d533e091324eb9e1164dd (diff)
Merge "disable service autostart when install packages on ubuntu"
Diffstat (limited to 'deploy/adapters/ansible/roles/memcached/handlers')
-rw-r--r--deploy/adapters/ansible/roles/memcached/handlers/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/memcached/handlers/main.yml b/deploy/adapters/ansible/roles/memcached/handlers/main.yml
new file mode 100644
index 00000000..4c3230c1
--- /dev/null
+++ b/deploy/adapters/ansible/roles/memcached/handlers/main.yml
@@ -0,0 +1,12 @@
+##############################################################################
+# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+- name: restart memcahed services
+ service: name={{ item }} state=restarted enabled=yes
+ with_items: services| union(services_noarch)