Skip to content

Commit

Permalink
project: replace unnamed-task by name[missing]
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
  • Loading branch information
MrFreezeex committed Jun 26, 2023
1 parent 783987a commit 4235d41
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion roles/container-engine/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
state: started
when: docker_task_result is not changed
rescue:
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "Docker start failed. Try to remove our config"
- name: remove kubespray generated config
file:
Expand Down
2 changes: 1 addition & 1 deletion roles/download/tasks/download_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
when:
- not download_always_pull

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "Pull {{ image_reponame }} required is: {{ pull_required }}"

- name: download_container | Determine if image is in cache
Expand Down
4 changes: 2 additions & 2 deletions roles/kubernetes/node-label/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
- node_labels is defined
- node_labels is mapping

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: role_node_labels
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: inventory_node_labels

- name: Set label to node
Expand Down
4 changes: 2 additions & 2 deletions roles/win_nodes/kubernetes_patch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
register: patch_kube_proxy_state
when: current_kube_proxy_state.stdout | trim | lower != "linux"

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ patch_kube_proxy_state.stdout_lines }}"
when: patch_kube_proxy_state is not skipped

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ patch_kube_proxy_state.stderr_lines }}"
when: patch_kube_proxy_state is not skipped
tags: init
Expand Down
2 changes: 1 addition & 1 deletion tests/cloud_playbooks/create-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

- name: Template the inventory
template:
src: ../templates/inventory-aws.j2 # noqa 404 CI inventory templates are not in role_path
src: ../templates/inventory-aws.j2 # noqa no-relative-paths - CI inventory templates are not in role_path
dest: "{{ inventory_path }}"
mode: 0644
4 changes: 2 additions & 2 deletions tests/cloud_playbooks/create-do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@
register: droplets
with_items: "{{ instance_names }}"

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ droplets }}, {{ inventory_path }}"
when: state == 'present'

- name: Template the inventory
template:
src: ../templates/inventory-do.j2 # noqa 404 CI templates are not in role_path
src: ../templates/inventory-do.j2 # noqa no-relative-paths - CI templates are not in role_path
dest: "{{ inventory_path }}"
mode: 0644
when: state == 'present'
4 changes: 2 additions & 2 deletions tests/cloud_playbooks/create-gce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
groupname: "waitfor_hosts"
with_items: '{{ gce.instance_data }}'

- name: Template the inventory # noqa 404 CI inventory templates are not in role_path
- name: Template the inventory # noqa no-relative-paths - CI inventory templates are not in role_path
template:
src: ../templates/inventory-gce.j2
dest: "{{ inventory_path }}"
Expand All @@ -64,7 +64,7 @@
mode: 0755
when: mode in ['scale', 'separate-scale', 'ha-scale']

- name: Template fake hosts group vars # noqa 404 CI templates are not in role_path
- name: Template fake hosts group vars # noqa no-relative-paths - CI templates are not in role_path
template:
src: ../templates/fake_hosts.yml.j2
dest: "{{ inventory_path|dirname }}/group_vars/fake_hosts.yml"
Expand Down
2 changes: 1 addition & 1 deletion tests/cloud_playbooks/upload-logs-gcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@
failed_when: false
no_log: True

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "A public url https://storage.googleapis.com/{{ test_name }}/{{ file_name }}"
2 changes: 1 addition & 1 deletion tests/testcases/010_check-apiserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
delay: 5
until: apiserver_response is success

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ apiserver_response.json }}"

- name: Check API servers version
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/015_check-nodes-ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]

- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump

- name: Check kubectl output
Expand All @@ -21,7 +21,7 @@
register: get_nodes
no_log: true

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_nodes.stdout.split('\n') }}"

- name: Check that all nodes are running and ready
Expand Down
6 changes: 3 additions & 3 deletions tests/testcases/020_check-pods-running.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]

- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump

- name: Check kubectl output
Expand All @@ -21,7 +21,7 @@
register: get_pods
no_log: true

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_pods.stdout.split('\n') }}"

- name: Check that all pods are running and ready
Expand All @@ -44,6 +44,6 @@
register: get_pods
no_log: true

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_pods.stdout.split('\n') }}"
failed_when: not run_pods_log is success
10 changes: 5 additions & 5 deletions tests/testcases/030_check-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
register: get_csr
changed_when: false

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_csr.stdout.split('\n') }}"

- name: Check there are csrs
Expand Down Expand Up @@ -63,7 +63,7 @@
when: get_csr.stdout_lines | length > 0
changed_when: certificate_approve.stdout

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ certificate_approve.stdout.split('\n') }}"

when:
Expand Down Expand Up @@ -114,7 +114,7 @@
- agnhost1
- agnhost2

- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump

- name: Check that all pods are running and ready
Expand All @@ -137,7 +137,7 @@
register: pods
no_log: true

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ pods.stdout.split('\n') }}"
failed_when: not run_pods_log is success

Expand All @@ -162,7 +162,7 @@
register: get_pods
no_log: true

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_pods.stdout.split('\n') }}"

- name: Set networking facts
Expand Down
10 changes: 5 additions & 5 deletions tests/testcases/040_check-network-adv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]

- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump

- name: Wait for netchecker server
Expand Down Expand Up @@ -60,7 +60,7 @@
- netchecker-agent-hostnet
when: not nca_pod is success

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: nca_pod.stdout_lines
when: inventory_hostname == groups['kube_control_plane'][0]

Expand Down Expand Up @@ -96,7 +96,7 @@
when:
- agents.content != '{}'

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: ncs_pod
run_once: true

Expand Down Expand Up @@ -130,7 +130,7 @@
- agents.content is defined
- agents.content[0] == '{'

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: agents_check_result
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true
Expand All @@ -147,7 +147,7 @@
- connectivity_check.content is defined
- connectivity_check.content[0] == '{'

- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: connectivity_check_result
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true
Expand Down

0 comments on commit 4235d41

Please sign in to comment.