source: main/waeup-ansible/playbook-post-reboot.yml @ 14220

Last change on this file since 14220 was 14192, checked in by Henrik Bettermann, 8 years ago

Add Ikoba Demo and Ikoba Uniben instances.

File size: 1.7 KB
RevLine 
[14032]1---
2# This ansible-playbook starts services on
3# productive servers after reboot.
4#
5# What it does:
6#   start all services in need of manual action.
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-post-reboot.yml
13#
14
15- hosts: h5.waeup.org
16  become: true
17  become_user: root
18  tasks:
19  #- name: do something
20  #  file: state=touch path=/home/henrik/123
21  #  become_user: henrik
22  #  become_method: sudo
23  #  become: true
24  - name: Start odoo
25    service: name=odoo-server state=started
26  - name: Start scientific african
27    command: sudo -u henrik /home/henrik/zope/instances/sciafr/bin/zopectl start
28  - name: Start uniben-staff
29    command: sudo -u henrik /data/srp/instances/uniben-staff/bin/zopectl start
30  - name: Start ngren plone
31    command: sudo -u plone /data/plone/ngren/bin/instance start
32  - name: Start waeup plone
33    command: sudo -u plone /data/plone/waeup/bin/instance start
34
35- hosts: h6.waeup.org
36  become: yes
37  become_user: root
38  tasks:
39  - name: Start Ikoba PCN instance
40    command: sudo -u ikoba /ikoba/pcn/bin/ikobactl start
41    args:
42      chdir: /ikoba/pcn/
43  - name: Start Kofa instances
44    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
45    args:
46      chdir: /kofa/scripts
[14192]47  - name: Start Ikoba Demo instance
48    command: sudo -u ikoba /ikoba/demo/bin/ikobactl start
49    args:
50      chdir: /ikoba/demo/
[14032]51
52
53- hosts: h7.waeup.org
54  become: yes
55  become_user: root
56  tasks:
57  - name: Start kofa instances
58    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
59    args:
60      chdir: /kofa/scripts
[14192]61  - name: Start Ikoba Uniben instance
62    command: sudo -u ikoba /ikoba/ikobacustom.uniben/bin/ikobactl start
63    args:
64      chdir: /ikoba/ikobacustom.uniben/
Note: See TracBrowser for help on using the repository browser.