Changeset 14692 for main/waeup-ansible


Ignore:
Timestamp:
14 Jun 2017, 14:17:33 (8 years ago)
Author:
uli
Message:

Consider vhosts in pre-/post-reboot playbooks.

When rebooting hosts with ansible, we have to care for virtual machines.

Location:
main/waeup-ansible
Files:
2 edited

Legend:

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

    r14330 r14692  
    5454      chdir: /ikoba/demo/
    5555
    56 
    5756- hosts: h7.waeup.org
    5857  become: yes
     
    6766    args:
    6867      chdir: /ikoba/ikobacustom.uniben/
     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
  • main/waeup-ansible/playbook-prep-reboot.yml

    r14330 r14692  
    6666    args:
    6767      chdir: /ikoba/ikobacustom.uniben/
     68  - name: Stop vagrant vhost1
     69    become_user: vhosts
     70    command: vagrant halt
     71    args:
     72      chdir: /home/vhosts/vhost1/
     73
     74- hosts: h8.waeup.org
     75  become: yes
     76  become_user: root
     77  tasks:
     78  - name: Stop vagrant vhost2
     79    become_user: vhosts
     80    command: vagrant halt
     81    args:
     82      chdir: /home/vhosts/vhost2/
     83
Note: See TracChangeset for help on using the changeset viewer.