Add noqa and disable .ansible-lint global exclusions (#6410)

This commit is contained in:
Maxime Guyot
2020-07-27 15:24:17 +02:00
committed by GitHub
parent b680cdd0e4
commit e70f27dd79
74 changed files with 163 additions and 170 deletions

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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"

View File

@@ -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 }}"

View File

@@ -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:

View File

@@ -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"