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

Last change on this file since 17935 was 15905, checked in by Henrik Bettermann, 5 years ago

Start vagrant vhost10 after reboot.

File size: 3.2 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
99  - name: Start vagrant vhost6
100    become_user: vhosts
101    command: vagrant up
102    args:
103      chdir: /home/vhosts/vhost6
104
105- hosts: h9.waeup.org
106  become: yes
107  become_user: root
108  tasks:
109  - name: Start Kofa instances
110    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
111    args:
112      chdir: /kofa/scripts
113
114- hosts: h10.waeup.org
115  become: yes
116  become_user: root
117  tasks:
118  - name: Start kofa instances
119    command: sudo -u kofa /kofa/scripts/kofactl_all.sh start
120    args:
121      chdir: /kofa/scripts
122  - name: Start vagrant vhost10
123    become_user: vhosts
124    command: vagrant up
125    args:
126      chdir: /home/vhosts/vhost10
Note: See TracBrowser for help on using the repository browser.