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 d7f2126 commit 0f0637fCopy full SHA for 0f0637f
playbooks/tests/registrations.yaml
@@ -39,8 +39,10 @@
39
that: "containers_used_count | int < containers_count | int"
40
41
- name: "Generate list of containers we are going to use"
42
- shell:
43
- head -n "{{ containers_used_count|int + size|int }}" /root/container-ips.shuffled | tail -n "{{ size }}" | cut -d ' ' -f 2 > clients.ini
+ ansible.builtin.shell: |
+ awk 'NR > {{ containers_used_count | int }} && NR <= {{ containers_used_count | int + size | int }} {print $NF}' \
44
+ /root/container-ips.shuffled \
45
+ >clients.ini
46
47
- name: "Set base log name"
48
ansible.builtin.set_fact:
0 commit comments