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

Last change on this file since 15362 was 15356, checked in by uli, 6 years ago

Move handling of v1.

As v1 moved from h7 to h8, we have to reflect this change also in the reboot
playbooks.

File size: 2.6 KB
Line 
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- import_playbook: playbook-post-reboot-gnufix.yml
15
16- hosts: h5.waeup.org
17  become: true
18  become_user: root
19  tasks:
20  #- name: do something
21  #  file: state=touch path=/home/henrik/123
22  #  become_user: henrik
23  #  become_method: sudo
24  #  become: true
25  - name: Start odoo
26    service: name=odoo-server state=started
27  - name: Start scientific african
28    command: sudo -u henrik /home/henrik/zope/instances/sciafr/bin/zopectl start
29  - name: Start uniben-staff
30    command: sudo -u henrik /data/srp/instances/uniben-staff/bin/zopectl start
31  - name: Start ngren plone
32    command: sudo -u plone /data/plone/ngren/bin/instance start
33  - name: Start waeup plone
34    command: sudo -u plone /data/plone/waeup/bin/instance start
35
36- hosts: h6.waeup.org
37  become: yes
38  become_user: root
39  tasks:
40  - name: Start Ikoba AAUE instance
41    command: sudo -u ikoba /ikoba/aaue/bin/ikobactl start
42    args:
43      chdir: /ikoba/aaue/
44  - name: Start Ikoba PCN instance
45    command: sudo -u ikoba /ikoba/pcn/bin/ikobactl start
46    args:
47      chdir: /ikoba/pcn/
48  - name: Start Kofa instances
49    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
50    args:
51      chdir: /kofa/scripts
52  - name: Start Ikoba Demo instance
53    command: sudo -u ikoba /ikoba/demo/bin/ikobactl start
54    args:
55      chdir: /ikoba/demo/
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
65  - name: Start Ikoba Uniben instance
66    command: sudo -u ikoba /ikoba/ikobacustom.uniben/bin/ikobactl start
67    args:
68      chdir: /ikoba/ikobacustom.uniben/
69
70- hosts: h8.waeup.org
71  become: yes
72  become_user: root
73  tasks:
74  - name: Start vagrant vhost1
75    become_user: vhosts
76    command: vagrant up
77    args:
78      chdir: /home/vhosts/vhost1
79  - name: Start vagrant vhost2
80    become_user: vhosts
81    command: vagrant up
82    args:
83      chdir: /home/vhosts/vhost2
84  - name: Start vagrant vhost3
85    become_user: vhosts
86    command: vagrant up
87    args:
88      chdir: /home/vhosts/vhost3
89  - name: Start vagrant vhost4
90    become_user: vhosts
91    command: vagrant up
92    args:
93      chdir: /home/vhosts/vhost4
94  - name: Start vagrant vhost5
95    become_user: vhosts
96    command: vagrant up
97    args:
98      chdir: /home/vhosts/vhost5
Note: See TracBrowser for help on using the repository browser.