Fix lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
434adb4b76
commit
5d06225a9f
2 changed files with 61 additions and 61 deletions
|
|
@ -1,10 +1,10 @@
|
|||
- name: Dashboard setup
|
||||
block:
|
||||
- name: Include file list
|
||||
include_vars: "dashboard-files.yaml"
|
||||
ansible.builtin.include_vars: "dashboard-files.yaml"
|
||||
|
||||
- name: namespace
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
labels:
|
||||
namespace: 'kubernetes-dashboard'
|
||||
- name: dashboard install
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -28,15 +28,15 @@
|
|||
- traefik/dashboard-traefik-auth-crb.yaml
|
||||
- "{{ dashboard_files_list }}"
|
||||
- name: get the dashboard-token secret name
|
||||
command: kubectl --context {{ my_context }} get sa kubernetes-dashboard-traefik -n kubernetes-dashboard -o jsonpath='{.secrets[0].name}'
|
||||
ansible.builtin.command: kubectl --context {{ my_context }} get sa kubernetes-dashboard-traefik -n kubernetes-dashboard -o jsonpath='{.secrets[0].name}'
|
||||
register: secret_name
|
||||
|
||||
- name: get the sa token
|
||||
command: kubectl --context {{ my_context }} get secret -n kubernetes-dashboard {{ secret_name.stdout }} -o jsonpath='{.data.token}'
|
||||
ansible.builtin.command: kubectl --context {{ my_context }} get secret -n kubernetes-dashboard {{ secret_name.stdout }} -o jsonpath='{.data.token}'
|
||||
register: token_value
|
||||
|
||||
- name: write the token to traefik v2 middleware
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
- traefik_version | regex_search('(^2.)')
|
||||
|
||||
- name: ingress dashboard install
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue