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

@@ -4,7 +4,7 @@
# the template, just replace all instances of {{ `{{` }} with {{ and {{ '}}' }} with }}.
# It will output something like the following:
# nginx:1.15,gcr.io/google-containers/kube-proxy:v1.14.1,gcr.io/google-containers/kube-proxy@sha256:44af2833c6cbd9a7fc2e9d2f5244a39dfd2e31ad91bf9d4b7d810678db738ee9,gcr.io/google-containers/kube-apiserver:v1.14.1,etc...
- name: check_pull_required | Generate a list of information about the images on a node
- name: check_pull_required | Generate a list of information about the images on a node # noqa 305
shell: "{{ image_info_command }}"
no_log: true
register: docker_images

View File

@@ -63,7 +63,7 @@
- pull_required or download_run_once
- not image_is_cached
- name: download_container | Save and compress image
- name: download_container | Save and compress image # noqa 305
shell: "{{ image_save_command_on_localhost if download_localhost else image_save_command }}"
delegate_to: "{{ download_delegate }}"
delegate_facts: no
@@ -103,7 +103,7 @@
- pull_required
- download_force_cache
- name: download_container | Load image into docker
- name: download_container | Load image into docker # noqa 305
shell: "{{ image_load_command }}"
register: container_load_status
failed_when: container_load_status is failed

View File

@@ -32,7 +32,7 @@
- localhost
- asserts
- name: prep_download | On localhost, check if user has access to docker without using sudo
- name: prep_download | On localhost, check if user has access to docker without using sudo # noqa 305
shell: "{{ image_info_command_on_localhost }}"
delegate_to: localhost
connection: local
@@ -68,7 +68,7 @@
- localhost
- asserts
- name: prep_download | Register docker images info
- name: prep_download | Register docker images info # noqa 305
shell: "{{ image_info_command }}"
no_log: true
register: docker_images

View File

@@ -30,7 +30,7 @@
mode: "0755"
state: file
- name: prep_kubeadm_images | Generate list of required images
- name: prep_kubeadm_images | Generate list of required images # noqa 306
shell: "{{ bin_dir }}/kubeadm config images list --config={{ kube_config_dir }}/kubeadm-images.yaml | grep -v coredns"
register: kubeadm_images_raw
run_once: true