summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/post-osa/handlers
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-01-30 01:03:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-30 01:03:47 +0000
commit7dfbe30d59e513da56fe34e3ffa44840a4c41ded (patch)
treefb3e6188baff221827a7e6c71c055de93f327e0a /deploy/adapters/ansible/roles/post-osa/handlers
parent2c93fa28f1f1e78f4135f096f0c59e82963fd847 (diff)
parent8c52d2b68d656aef61baf8d092e40024f397c5ed (diff)
Merge "Change gnocchi storage and increase the capacity of ceph"
Diffstat (limited to 'deploy/adapters/ansible/roles/post-osa/handlers')
-rwxr-xr-xdeploy/adapters/ansible/roles/post-osa/handlers/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-osa/handlers/main.yml b/deploy/adapters/ansible/roles/post-osa/handlers/main.yml
index 3d979e6a..d685edca 100755
--- a/deploy/adapters/ansible/roles/post-osa/handlers/main.yml
+++ b/deploy/adapters/ansible/roles/post-osa/handlers/main.yml
@@ -9,3 +9,17 @@
- name: restart network service
shell: "/sbin/ifconfig eth0 0 &&/sbin/ifdown -a && \
/sbin/ifup --ignore-errors -a"
+
+- name: Restart ceilometer services
+ service:
+ name: "{{ item.0.service_name }}"
+ enabled: "yes"
+ state: "restarted"
+ with_subelements:
+ - "{{ ceilometer_services }}"
+ - group
+ when: inventory_hostname in groups[item.1]
+ register: _restart
+ until: _restart | success
+ retries: 5
+ delay: 2