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

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

Add Ikoba AAUE instance to playbooks.

File size: 1.9 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:
[14330]39  - name: Start Ikoba AAUE instance
40    command: sudo -u ikoba /ikoba/aaue/bin/ikobactl start
41    args:
42      chdir: /ikoba/aaue/
[14032]43  - name: Start Ikoba PCN instance
44    command: sudo -u ikoba /ikoba/pcn/bin/ikobactl start
45    args:
46      chdir: /ikoba/pcn/
47  - name: Start Kofa instances
48    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
49    args:
50      chdir: /kofa/scripts
[14192]51  - name: Start Ikoba Demo instance
52    command: sudo -u ikoba /ikoba/demo/bin/ikobactl start
53    args:
54      chdir: /ikoba/demo/
[14032]55
56
57- hosts: h7.waeup.org
58  become: yes
59  become_user: root
60  tasks:
61  - name: Start kofa instances
62    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
63    args:
64      chdir: /kofa/scripts
[14192]65  - name: Start Ikoba Uniben instance
66    command: sudo -u ikoba /ikoba/ikobacustom.uniben/bin/ikobactl start
67    args:
68      chdir: /ikoba/ikobacustom.uniben/
Note: See TracBrowser for help on using the repository browser.