[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 | # |
---|
[15356] | 14 | - import_playbook: playbook-post-reboot-gnufix.yml |
---|
[14032] | 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: |
---|
[14330] | 40 | - name: Start Ikoba AAUE instance |
---|
| 41 | command: sudo -u ikoba /ikoba/aaue/bin/ikobactl start |
---|
| 42 | args: |
---|
| 43 | chdir: /ikoba/aaue/ |
---|
[14032] | 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 |
---|
[14192] | 52 | - name: Start Ikoba Demo instance |
---|
| 53 | command: sudo -u ikoba /ikoba/demo/bin/ikobactl start |
---|
| 54 | args: |
---|
| 55 | chdir: /ikoba/demo/ |
---|
[14032] | 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/ |
---|
[15356] | 69 | |
---|
| 70 | - hosts: h8.waeup.org |
---|
| 71 | become: yes |
---|
| 72 | become_user: root |
---|
| 73 | tasks: |
---|
[14692] | 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 |
---|
[14771] | 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 |
---|
[14906] | 94 | - name: Start vagrant vhost5 |
---|
| 95 | become_user: vhosts |
---|
| 96 | command: vagrant up |
---|
| 97 | args: |
---|
| 98 | chdir: /home/vhosts/vhost5 |
---|
[15389] | 99 | - name: Start vagrant vhost6 |
---|
| 100 | become_user: vhosts |
---|
| 101 | command: vagrant up |
---|
| 102 | args: |
---|
| 103 | chdir: /home/vhosts/vhost6 |
---|