Changeset 14031 for main/waeup-ansible


Ignore:
Timestamp:
15 Jul 2016, 22:00:43 (8 years ago)
Author:
uli
Message:

This playbook works okay for all servers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup-ansible/playbook-prep-reboot.yml

    r13957 r14031  
    1212#   $ ansible-playbook -i host -K -l h5.waeup.org playbook-prep-reboot.yml
    1313#
     14
    1415- hosts: h5.waeup.org
    1516  become: yes
    1617  become_user: root
    1718  tasks:
    18   - name: try something
    19     become_user: uli
    20     command: touch /home/uli/mytouch
     19  #- name: do something
     20  #  file: state=touch path=/home/uli/123
     21  #  become_user: kofa
     22  - name: Stop odoo
     23    service: name=odoo-server state=stopped
     24  - name: Stop scientific african
     25    command: sudo -u henrik /home/henrik/zope/instances/sciafr/bin/zopectl stop
     26  - name: Stop uniben-staff
     27    command: sudo -u henrik /data/srp/instances/uniben-staff/bin/zopectl stop
     28  - name: Stop ngren plone
     29    command: sudo -u plone /data/plone/ngren/bin/instance stop
     30  - name: Stop waeup plone
     31    command: sudo -u plone /data/plone/waeup/bin/instance stop
    2132
    22   #- name: Stop scientific african
    23   #    - user henrik
    24   #    - /home/henrik/zope/instances/sciafr/bin/zopectl stop
    25   #- name: Stop uniben-staff
    26   #    - user henrik
    27   #    - /data/srp/instances/uniben-staff/bin/zopectl stop
    28   #- name: Stop odoo
    29   #    - user root
    30   #    - service odoo-server stop
    31   #- name: Stop ngren plone
    32   #    - user plone
    33   #    - /data/plone/ngren/bin/instance stop
    34   #- name: Stop waeup plone
    35   #    - user plone
    36   #    - /data/plone/waeup/bin/instance stop
    3733
    38 #- hosts: h6.waeup.org
    39 #  remote_user: root
    40 #  tasks:
    41 #  - name: Stop Ikoba PCN instance
    42 #    user: ikoba
    43 #    /ikoba/pcn/bin/ikobactl stop
    44 #  - name: Stop Kofa instances
    45 #    user: kofa
    46 #    /kofa/scripts/kofactl_all.sh stop
     34- hosts: h6.waeup.org
     35  become: yes
     36  become_user: root
     37  tasks:
     38  - name: Stop Ikoba PCN instance
     39    command: sudo -u ikoba /ikoba/pcn/bin/ikobactl stop
     40    args:
     41      chdir: /ikoba/pcn/
     42  - name: Stop Kofa instances
     43    command: sudo -u kofa /kofa/scripts/kofactl_all.sh stop
     44    args:
     45      chdir: /kofa/scripts
    4746
    48 #- hosts: h7.waeup.org
    49 #  remote_user: root
    50 #  tasks:
    51 #  - name: Stop Kofa instances
    52 #    user: kofa
    53 #    /kofa/scripts/kofactl_all.sh stop
     47
     48- hosts: h7.waeup.org
     49  become: yes
     50  become_user: root
     51  tasks:
     52  - name: Stop kofa instances
     53    command: sudo -u kofa /kofa/scripts/kofactl_all.sh stop
     54    args:
     55      chdir: /kofa/scripts
Note: See TracChangeset for help on using the changeset viewer.