- name: Run migrate.sh script
  shell: ./migrate.sh
  register: retval
  when: debpkg_mode or stage2_nix
  args:
    chdir: /tmp/migrations/db
  failed_when: retval.rc != 0

- name: Create /root/MIGRATION-AMI file
  file:
    path: "/root/MIGRATION-AMI"
    state: touch
  when: debpkg_mode or stage2_nix
