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:21:31 +02:00
parent dcbc650c9e
commit 46272c92d8
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
4 changed files with 249 additions and 250 deletions

View file

@ -1,21 +1,21 @@
---
# https://github.com/digitalocean/csi-digitalocean
- name: Include file list
- name: Include file list
ansible.builtin.include_vars: "digitalocean.yaml"
- name: Defined digitalocean-storage state to present
- name: Defined digitalocean-storage state to present
ansible.builtin.set_fact:
storage_digitalocean_state: present
when:
- storage_digitalocean|bool
- name: find state of digitalocean-storage
- name: find state of digitalocean-storage
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 }}
- name: Secret for DigitalOcean Access Key need to be {{ storage_digitalocean_state }}
kubernetes.core.k8s:
state: "{{ storage_digitalocean_state }}"
context: "{{ my_context }}"
@ -29,7 +29,7 @@
stringData:
access-token: "{{ digitalocean_token | default('token_missing') }}"
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
kubernetes.core.k8s:
state: "{{ storage_digitalocean_state }}"
context: "{{ my_context }}"

View file

@ -1,21 +1,21 @@
---
# https://github.com/linode/linode-blockstorage-csi-driver
- name: Include file list
- name: Include file list
ansible.builtin.include_vars: "linode.yaml"
- name: Defined linode-storage state to present
- name: Defined linode-storage state to present
ansible.builtin.set_fact:
storage_linode_state: present
when:
- storage_linode|bool
- name: find state of linode-storage
- name: find state of linode-storage
ansible.builtin.set_fact:
storage_linode_state: absent
when:
- not storage_linode|bool
- name: Add secret for Linode Access Key
- name: Add secret for Linode Access Key
kubernetes.core.k8s:
state: "{{ storage_linode_state }}"
context: "{{ my_context }}"
@ -30,7 +30,7 @@
token: "{{ LINODE_TOKEN | default('token_missing') }}"
region: "{{ LINODE_REGION | default('token_missing') }}"
- name: linode-storage need to be {{ storage_linode_state }}
- name: linode-storage need to be {{ storage_linode_state }}
kubernetes.core.k8s:
state: "{{ storage_linode_state }}"
context: "{{ my_context }}"

View file

@ -1,5 +1,5 @@
---
- name: longhorn need to be present
- name: longhorn need to be present
block:
- name: Defined longhorn repository
kubernetes.core.helm_repository:
@ -123,7 +123,7 @@
- longhorn
- storage
- name: longhorn need to be absent
- name: longhorn need to be absent
block:
- name: Deploy latest version of longhorn
kubernetes.core.helm:

View file

@ -1,5 +1,5 @@
---
- name: NFS client setup
- name: NFS client setup
block:
# https://github.com/kubernetes-incubator/external-storage/blob/master/nfs/docs/deployment.md
# Ne pas oublier de "sudo chcon -Rt svirt_sandbox_file_t /srv" pour le stockage
@ -10,7 +10,6 @@
kubernetes.core.helm_repository:
name: nfs-subdir-external-provisioner
repo_url: "https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner"
- name: Deploy latest version of NFS Provisioner
kubernetes.core.helm:
context: "{{ my_context }}"
@ -36,7 +35,7 @@
- nfs
- storage
- name: NFS client need to be absent
- name: NFS client need to be absent
block:
- name: Uninstall nfs-subdir-external-provisioner
kubernetes.core.helm: