forked from matthewoliver/swift-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestart_swift.yml
42 lines (39 loc) · 969 Bytes
/
restart_swift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- hosts: proxy
user: root
tasks:
- name: restart proxy server
shell: swift-init proxy restart
- name: restart memcache server
service: name=memcached state=restarted
- hosts: container
user: root
tasks:
- name: restart container services
shell: swift-init {{ item }} restart
with_items:
- container-server
- container-auditor
- container-replicator
- container-reconciler
- container-updater
- hosts: account
user: root
tasks:
- name: restart account services
shell: swift-init {{ item }} restart
with_items:
- account-server
- account-auditor
- account-reaper
- account-replicator
- hosts: object
user: root
tasks:
- name: restart object services
shell: swift-init {{ item }} restart
with_items:
- object-server
- object-auditor
- object-replicator
- object-updater