fix(ansible): fix lint

This commit is contained in:
Timothy Stewart 2022-08-28 16:29:04 -05:00
parent f603a048c3
commit c82cbfc501

View File

@ -42,21 +42,18 @@
- name: Apply metallb-system namespace - name: Apply metallb-system namespace
command: >- command: >-
k3s kubectl apply -f /tmp/k3s/metallb-namespace.yaml k3s kubectl apply -f /tmp/k3s/metallb-namespace.yaml
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true
- name: Test metallb-system namespace - name: Test metallb-system namespace
command: >- command: >-
k3s kubectl -n metallb-system k3s kubectl -n metallb-system
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true
- name: Apply metallb crds and service - name: Apply metallb crds and service
command: >- command: >-
k3s kubectl apply -f /tmp/k3s/metallb.yaml k3s kubectl apply -f /tmp/k3s/metallb.yaml
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true
@ -109,28 +106,24 @@
- name: Test metallb-system webhook-service endpoint - name: Test metallb-system webhook-service endpoint
command: >- command: >-
k3s kubectl -n metallb-system get endpoints webhook-service k3s kubectl -n metallb-system get endpoints webhook-service
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true
- name: Apply metallb CRs - name: Apply metallb CRs
command: >- command: >-
k3s kubectl apply -f /tmp/k3s/metallb-crs.yaml k3s kubectl apply -f /tmp/k3s/metallb-crs.yaml
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true
- name: Test metallb-system IPAddressPool - name: Test metallb-system IPAddressPool
command: >- command: >-
k3s kubectl -n metallb-system get IPAddressPool k3s kubectl -n metallb-system get IPAddressPool
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true
- name: Test metallb-system L2Advertisement - name: Test metallb-system L2Advertisement
command: >- command: >-
k3s kubectl -n metallb-system get L2Advertisement k3s kubectl -n metallb-system get L2Advertisement
changed_when: false
with_items: "{{ groups['master'] }}" with_items: "{{ groups['master'] }}"
run_once: true run_once: true