diff --git a/roles/pvc/tasks/pvc/bootstrap.yml b/roles/pvc/tasks/pvc/bootstrap.yml index 12c6a08..2908c51 100644 --- a/roles/pvc/tasks/pvc/bootstrap.yml +++ b/roles/pvc/tasks/pvc/bootstrap.yml @@ -3,8 +3,8 @@ command: ip address add {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} ignore_errors: yes -- name: prepare database migrations - command: /usr/share/pvc/pvc-api-db-init +- name: apply database migrations + command: /usr/share/pvc/pvc-api-db-upgrade - name: start the API daemon service: @@ -39,9 +39,3 @@ - name: remove floating IP address to upstream interface command: ip address delete {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} ignore_errors: yes - -- name: collect bootstrapped database migration files into the role - fetch: - src: /usr/share/pvc/migrations - dest: roles/pvc/files/pvc/{{ hostvars[inventory_hostname].group_names[0] }}/ - flat: no diff --git a/roles/pvc/tasks/pvc/main.yml b/roles/pvc/tasks/pvc/main.yml index 82ba541..e806db9 100644 --- a/roles/pvc/tasks/pvc/main.yml +++ b/roles/pvc/tasks/pvc/main.yml @@ -50,11 +50,6 @@ run_once: yes when: bootstrap is defined and bootstrap and is_coordinator -- name: install bootstrap database migrations across all hosts - copy: - src: pvc/{{ hostvars[inventory_hostname].group_names[0] }}/migrations - dest: /usr/share/pvc/ - - name: enable daemon services but don't start them service: name: "{{ item }}"