mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-17 14:27:47 -02:30
Resolve ansible-lint name errors (#10253)
* project: fix ansible-lint name Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: ignore jinja template error in names Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: capitalize ansible name Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: update notify after name capitalization Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
This commit is contained in:
committed by
GitHub
parent
b9e3861385
commit
36e5d742dc
@@ -1,16 +1,17 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
- name: Terminate Google Cloud VMs
|
||||
hosts: localhost
|
||||
become: false
|
||||
gather_facts: no
|
||||
vars:
|
||||
mode: default
|
||||
|
||||
tasks:
|
||||
- name: replace_test_id
|
||||
- name: Replace_test_id
|
||||
set_fact:
|
||||
test_name: "{{ test_id | regex_replace('\\.', '-') }}"
|
||||
|
||||
- name: set instance names
|
||||
- name: Set instance names
|
||||
set_fact:
|
||||
# noqa: jinja[spacing]
|
||||
instance_names: >-
|
||||
@@ -20,7 +21,7 @@
|
||||
k8s-{{ test_name }}-1,k8s-{{ test_name }}-2
|
||||
{%- endif -%}
|
||||
|
||||
- name: stop gce instances # noqa args[module] - Probably doesn't work
|
||||
- name: Stop gce instances # noqa args[module] - Probably doesn't work
|
||||
google.cloud.gcp_compute_instance:
|
||||
instance_names: "{{ instance_names }}"
|
||||
image: "{{ cloud_image | default(omit) }}"
|
||||
@@ -34,7 +35,7 @@
|
||||
poll: 3
|
||||
register: gce
|
||||
|
||||
- name: delete gce instances # noqa args[module] - Probably doesn't work
|
||||
- name: Delete gce instances # noqa args[module] - Probably doesn't work
|
||||
google.cloud.gcp_compute_instance:
|
||||
instance_names: "{{ instance_names }}"
|
||||
image: "{{ cloud_image | default(omit) }}"
|
||||
|
||||
Reference in New Issue
Block a user