--- /dev/null
+##############################################################################
+# 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 neutron compute service
+ service: name={{ item }} state=restarted enabled=yes
+ with_items: services | union(services_noarch)
+
+- name: restart nova-compute services
+ service: name=nova-compute state=restarted enabled=yes
- swift-container-updater
- swift-object-replicator
when: inventory_hostname in groups['compute']
+ ignore_errors: True
- name: sleep 10 second
shell: sleep 10
- swift-container-updater
- swift-object-replicator
when: inventory_hostname in groups['compute']
+ ignore_errors: True
- name: copy swift lib
copy: src=swift-lib.tar.gz dest=/tmp/swift-lib.tar.gz
-- name: untar swift lib
- shell: >
- tar zxf /tmp/swift-lib.tar.gz;
- cp /tmp/swift-lib/* /usr/lib/;
+- name: upload swift lib
+ unarchive: src=swift-lib.tar.gz dest=/usr/lib/
+
+#- name: untar swift lib
+# shell: >
+# tar zxf /tmp/swift-lib.tar.gz;
+# cp /tmp/swift-lib/* /usr/lib/;