format ansible output (#7482)
This commit is contained in:
parent
1d4e380231
commit
90c643f3ab
2 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
||||||
vars:
|
vars:
|
||||||
download: "{{ download_defaults | combine(downloads.helm) }}"
|
download: "{{ download_defaults | combine(downloads.helm) }}"
|
||||||
|
|
||||||
- name: Copy helm binary from download dir
|
- name: Helm | Copy helm binary from download dir
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ local_release_dir }}/helm-{{ helm_version }}/linux-{{ image_arch }}/helm"
|
src: "{{ local_release_dir }}/helm-{{ helm_version }}/linux-{{ image_arch }}/helm"
|
||||||
dest: "{{ bin_dir }}/helm"
|
dest: "{{ bin_dir }}/helm"
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
group: no
|
group: no
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
|
||||||
- name: Check if bash_completion.d folder exists # noqa 503
|
- name: Helm | Check if bash_completion.d folder exists # noqa 503
|
||||||
stat:
|
stat:
|
||||||
path: "/etc/bash_completion.d/"
|
path: "/etc/bash_completion.d/"
|
||||||
get_attributes: no
|
get_attributes: no
|
||||||
|
@ -22,14 +22,14 @@
|
||||||
get_mime: no
|
get_mime: no
|
||||||
register: stat_result
|
register: stat_result
|
||||||
|
|
||||||
- name: Get helm completion
|
- name: Helm | Get helm completion
|
||||||
command: "{{ bin_dir }}/helm completion bash"
|
command: "{{ bin_dir }}/helm completion bash"
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: helm_completion
|
register: helm_completion
|
||||||
check_mode: False
|
check_mode: False
|
||||||
when: stat_result.stat.exists
|
when: stat_result.stat.exists
|
||||||
|
|
||||||
- name: Install helm completion
|
- name: Helm | Install helm completion
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/bash_completion.d/helm.sh
|
dest: /etc/bash_completion.d/helm.sh
|
||||||
content: "{{ helm_completion.stdout }}"
|
content: "{{ helm_completion.stdout }}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: "Kubernetes Apps | Check cluster settings for MetalLB"
|
- name: Kubernetes Apps | Check cluster settings for MetalLB
|
||||||
fail:
|
fail:
|
||||||
msg: "MetalLB require kube_proxy_strict_arp = true, see https://github.com/danderson/metallb/issues/153#issuecomment-518651132"
|
msg: "MetalLB require kube_proxy_strict_arp = true, see https://github.com/danderson/metallb/issues/153#issuecomment-518651132"
|
||||||
when:
|
when:
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
- podsecuritypolicy_enabled
|
- podsecuritypolicy_enabled
|
||||||
- inventory_hostname == groups['kube_control_plane'][0]
|
- inventory_hostname == groups['kube_control_plane'][0]
|
||||||
|
|
||||||
- name: "Kubernetes Apps | Lay Down MetalLB"
|
- name: Kubernetes Apps | Lay Down MetalLB
|
||||||
become: true
|
become: true
|
||||||
template: { src: "{{ item }}.j2", dest: "{{ kube_config_dir }}/{{ item }}" }
|
template: { src: "{{ item }}.j2", dest: "{{ kube_config_dir }}/{{ item }}" }
|
||||||
with_items: ["metallb.yml", "metallb-config.yml"]
|
with_items: ["metallb.yml", "metallb-config.yml"]
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
when:
|
when:
|
||||||
- "inventory_hostname == groups['kube_control_plane'][0]"
|
- "inventory_hostname == groups['kube_control_plane'][0]"
|
||||||
|
|
||||||
- name: "Kubernetes Apps | Install and configure MetalLB"
|
- name: Kubernetes Apps | Install and configure MetalLB
|
||||||
kube:
|
kube:
|
||||||
name: "MetalLB"
|
name: "MetalLB"
|
||||||
kubectl: "{{ bin_dir }}/kubectl"
|
kubectl: "{{ bin_dir }}/kubectl"
|
||||||
|
|
Loading…
Reference in a new issue