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

This commit is contained in:
Adrien Reslinger 2022-07-23 01:00:27 +02:00
parent 762bd0781b
commit 27f14ecf1b
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
9 changed files with 326 additions and 322 deletions

View file

@ -1,22 +1,22 @@
---
# https://github.com/digitalocean/csi-digitalocean
- name: Include file list
include_vars: "digitalocean.yaml"
ansible.builtin.include_vars: "digitalocean.yaml"
- name: Defined digitalocean-storage state to present
set_fact:
ansible.builtin.set_fact:
storage_digitalocean_state: present
when:
- storage_digitalocean|bool
- name: find state of digitalocean-storage
set_fact:
ansible.builtin.set_fact:
storage_digitalocean_state: absent
when:
- not storage_digitalocean|bool
- name: Secret for DigitalOcean Access Key need to be {{ storage_digitalocean_state }}
k8s:
kubernetes.core.k8s:
state: "{{ storage_digitalocean_state }}"
context: "{{ my_context }}"
definition:
@ -30,7 +30,7 @@
access-token: "{{ digitalocean_token | default('token_missing') }}"
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
k8s:
kubernetes.core.k8s:
state: "{{ storage_digitalocean_state }}"
context: "{{ my_context }}"
merge_type: merge