mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Add noqa and disable .ansible-lint global exclusions (#6410)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
instance_tags: "{{ aws.tags }}"
|
||||
register: ec2
|
||||
|
||||
- name: Template the inventory
|
||||
- name: Template the inventory # noqa 404
|
||||
template:
|
||||
src: ../templates/inventory-aws.j2
|
||||
dest: "{{ inventory_path }}"
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
msg: "{{ droplets }}, {{ inventory_path }}"
|
||||
when: state == 'present'
|
||||
|
||||
- name: Template the inventory
|
||||
- name: Template the inventory # noqa 404
|
||||
template:
|
||||
src: ../templates/inventory-do.j2
|
||||
dest: "{{ inventory_path }}"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
add_host: hostname={{ item.public_ip }} groupname="waitfor_hosts"
|
||||
with_items: '{{ gce.instance_data }}'
|
||||
|
||||
- name: Template the inventory
|
||||
- name: Template the inventory # noqa 404
|
||||
template:
|
||||
src: ../templates/inventory-gce.j2
|
||||
dest: "{{ inventory_path }}"
|
||||
@@ -60,7 +60,7 @@
|
||||
state: directory
|
||||
when: mode in ['scale', 'separate-scale', 'ha-scale']
|
||||
|
||||
- name: Template fake hosts group vars
|
||||
- name: Template fake hosts group vars # noqa 404
|
||||
template:
|
||||
src: ../templates/fake_hosts.yml.j2
|
||||
dest: "{{ inventory_path|dirname }}/group_vars/fake_hosts.yml"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
loop_control:
|
||||
index_var: vm_id
|
||||
|
||||
- name: Wait for vms to have ipaddress assigned
|
||||
- name: Wait for vms to have ipaddress assigned # noqa 301 306
|
||||
shell: "kubectl get vmis -n {{ test_name }} instance-{{ vm_id }} -o json | jq '.status.interfaces[].ipAddress' | tr -d '\"'"
|
||||
register: vm_ips
|
||||
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
state: absent
|
||||
name: "{{ test_name }}"
|
||||
|
||||
- name: Wait for namespace {{ test_name }} to be fully deleted
|
||||
- name: Wait for namespace {{ test_name }} to be fully deleted # noqa 305
|
||||
shell: kubectl get ns {{ test_name }}
|
||||
register: delete_namespace
|
||||
failed_when:
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
expire_days: 2
|
||||
|
||||
tasks:
|
||||
- name: Generate uniq bucket name prefix
|
||||
- name: Generate uniq bucket name prefix # noqa 301
|
||||
raw: date +%Y%m%d
|
||||
register: out
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
no_log: True
|
||||
failed_when: false
|
||||
|
||||
- name: Apply the lifecycle rules
|
||||
- name: Apply the lifecycle rules # noqa 301
|
||||
command: "{{ dir }}/google-cloud-sdk/bin/gsutil lifecycle set {{ dir }}/gcs_life.json gs://{{ test_name }}"
|
||||
environment:
|
||||
BOTO_CONFIG: "{{ dir }}/.boto"
|
||||
|
||||
Reference in New Issue
Block a user