Fix ansible-lint E301 for commands fetching data (#6465)

This commit is contained in:
Maxime Guyot
2020-07-28 17:39:47 +02:00
committed by GitHub
parent 96a2b386f2
commit fe46349786
8 changed files with 34 additions and 17 deletions

View File

@@ -29,8 +29,9 @@
loop_control:
index_var: vm_id
- name: Wait for vms to have ipaddress assigned # noqa 301 306
- name: Wait for vms to have ipaddress assigned # noqa 306
shell: "kubectl get vmis -n {{ test_name }} instance-{{ vm_id }} -o json | jq '.status.interfaces[].ipAddress' | tr -d '\"'"
changed_when: false
register: vm_ips
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
loop_control:

View File

@@ -7,8 +7,9 @@
expire_days: 2
tasks:
- name: Generate uniq bucket name prefix # noqa 301
- name: Generate uniq bucket name prefix
raw: date +%Y%m%d
changed_when: false
register: out
- name: replace_test_id