source: main/waeup-ansible/playbook-prep-reboot.yml @ 14021

Last change on this file since 14021 was 13957, checked in by uli, 8 years ago

Add playbook that prepares hosts for reboot.

File size: 1.2 KB
Line 
1---
2# This ansible-playbook prepares productive
3# servers for reboot.
4#
5# What it does:
6#   stop all services in need of manual stop
7#
8# It will normally be run with ``ask-pass``
9#
10# Sample:
11#
12#   $ ansible-playbook -i host -K -l h5.waeup.org playbook-prep-reboot.yml
13#
14- hosts: h5.waeup.org
15  become: yes
16  become_user: root
17  tasks:
18  - name: try something
19    become_user: uli
20    command: touch /home/uli/mytouch
21
22  #- name: Stop scientific african
23  #    - user henrik
24  #    - /home/henrik/zope/instances/sciafr/bin/zopectl stop
25  #- name: Stop uniben-staff
26  #    - user henrik
27  #    - /data/srp/instances/uniben-staff/bin/zopectl stop
28  #- name: Stop odoo
29  #    - user root
30  #    - service odoo-server stop
31  #- name: Stop ngren plone
32  #    - user plone
33  #    - /data/plone/ngren/bin/instance stop
34  #- name: Stop waeup plone
35  #    - user plone
36  #    - /data/plone/waeup/bin/instance stop
37
38#- hosts: h6.waeup.org
39#  remote_user: root
40#  tasks:
41#  - name: Stop Ikoba PCN instance
42#    user: ikoba
43#    /ikoba/pcn/bin/ikobactl stop
44#  - name: Stop Kofa instances
45#    user: kofa
46#    /kofa/scripts/kofactl_all.sh stop
47
48#- hosts: h7.waeup.org
49#  remote_user: root
50#  tasks:
51#  - name: Stop Kofa instances
52#    user: kofa
53#    /kofa/scripts/kofactl_all.sh stop
Note: See TracBrowser for help on using the repository browser.