We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d584651 commit a89b678Copy full SHA for a89b678
ansible/tasks/setup-migrations.yml
@@ -1,13 +1,17 @@
1
-- name: Run migrate.sh script
2
- shell: ./migrate.sh
3
- register: retval
4
- when: debpkg_mode or stage2_nix
5
- args:
6
- chdir: /tmp/migrations/db
7
- failed_when: retval.rc != 0
+- name: run debpkg_mode or stage2_nix tasks
+ when:
+ - (debpkg_mode or stage2_nix)
+ block:
+ - name: Run migrate.sh script
+ ansible.builtin.command:
+ cmd: './migrate.sh'
8
+ args:
9
+ chdir: '/tmp/migrations/db'
10
+ failed_when:
11
+ - retval['rc'] != 0
12
+ register: 'retval'
13
-- name: Create /root/MIGRATION-AMI file
- file:
- path: "/root/MIGRATION-AMI"
- state: touch
14
+ - name: Create /root/MIGRATION-AMI file
15
+ ansible.builtin.file:
16
+ path: '/root/MIGRATION-AMI'
17
+ state: 'touch'
0 commit comments