Skip to content

Commit 12a06f6

Browse files
committed
fix blk list length and change loop var
1 parent f80cb7f commit 12a06f6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Temporary Items
3434

3535
# Ansible playbook runtime
3636
*/buffer/*
37+
*.ansible/*
3738

3839
# VS Code files for those working on multiple tools
3940
**/.vscode/*

ol/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
ansible.builtin.include_tasks: "block.yml"
8484
loop: "{{ query('sequence', 'start=1 end=' + (block_count) | string) }}"
8585
loop_control:
86+
loop_var: blk_devices
8687
extended: true
8788
vars:
8889
block_devices:
@@ -91,6 +92,9 @@
9192
- d
9293
- e
9394
- f
95+
- g
96+
- h
97+
- i
9498

9599
- name: Print the public and private ip of the newly created instance
96100
ansible.builtin.debug:

0 commit comments

Comments
 (0)