[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 | - hosts: h7.waeup.org |
---|
| 57 | become: yes |
---|
| 58 | become_user: root |
---|
| 59 | tasks: |
---|
| 60 | - name: Start kofa instances |
---|
| 61 | command: sudo -u kofa /kofa/scripts/kofactl_all.sh start |
---|
| 62 | args: |
---|
| 63 | chdir: /kofa/scripts |
---|
[14192] | 64 | - name: Start Ikoba Uniben instance |
---|
| 65 | command: sudo -u ikoba /ikoba/ikobacustom.uniben/bin/ikobactl start |
---|
| 66 | args: |
---|
| 67 | chdir: /ikoba/ikobacustom.uniben/ |
---|
[14692] | 68 | - name: Start vagrant vhost1 |
---|
| 69 | become_user: vhosts |
---|
| 70 | command: vagrant up |
---|
| 71 | args: |
---|
| 72 | chdir: /home/vhosts/vhost1 |
---|
| 73 | |
---|
| 74 | - hosts: h8.waeup.org |
---|
| 75 | become: yes |
---|
| 76 | become_user: root |
---|
| 77 | tasks: |
---|
| 78 | - name: Start vagrant vhost2 |
---|
| 79 | become_user: vhosts |
---|
| 80 | command: vagrant up |
---|
| 81 | args: |
---|
| 82 | chdir: /home/vhosts/vhost2 |
---|