Fix lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-07-22 22:08:15 +02:00
parent 11d4f5396d
commit bdb51bda99
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 34 additions and 34 deletions

View file

@ -6,6 +6,6 @@ galaxy_info:
galaxy_tags: [] galaxy_tags: []
license: GPL2 license: GPL2
platforms: platforms:
- name: kubernetes - name: kubernetes
version: version:
- all - all

View file

@ -1,39 +1,39 @@
--- ---
- name: calico setup - name: calico setup
block: block:
- name: Include vars - name: Include vars
include_vars: "calico-files.yaml" ansible.builtin.include_vars: "calico-files.yaml"
- name: calico install - name: calico install
k8s: kubernetes.core.k8s:
state: present state: present
context: "{{ my_context }}" context: "{{ my_context }}"
merge_type: merge merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}" resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items: with_items:
- "{{ calico_files }}" - "{{ calico_files }}"
register: calico_changed register: calico_changed
- name: delete pods calicoctl - name: delete pods calicoctl
k8s: kubernetes.core.k8s:
state: absent state: absent
context: "{{ my_context }}" context: "{{ my_context }}"
kind: Pod kind: Pod
name: calicoctl name: calicoctl
namespace: kube-system namespace: kube-system
# when: # when:
# - calico_changed is changed # - calico_changed is changed
# #
# - name: calicoctl install # - name: calicoctl install
# k8s: # kubernetes.core.k8s:
# state: present # state: present
# context: "{{ my_context }}" # context: "{{ my_context }}"
# apply: yes # apply: true
# resource_definition: "{{ lookup('file', item) | from_yaml }}" # resource_definition: "{{ lookup('file', item) | from_yaml }}"
# with_items: # with_items:
# - "{{ calicoctl_files }}" # - "{{ calicoctl_files }}"
# when: # when:
# - calico_changed is changed # - calico_changed is changed
when: when: