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

View file

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

View file

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

View file

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