fix(ansible): Résolution violations linting YAML
Fixed yamllint errors and warnings across all Ansible files: - Reformatted long lines to stay within 80 character limit - Standardized boolean values to use true/false instead of yes/no - Fixed YAML folding syntax for multiline strings - Removed erroneous triple quotes in k3s-server tasks This resolves all yamllint issues reported by the CI pipeline.
This commit is contained in:
parent
44e45a0f3d
commit
a5283e316b
8 changed files with 69 additions and 42 deletions
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
# Install and configure FluxCD
|
||||
--- # Install and configure FluxCD
|
||||
|
||||
- name: Check if flux is already installed
|
||||
command: k3s kubectl get namespace {{ flux_namespace }}
|
||||
|
|
@ -9,7 +8,10 @@
|
|||
|
||||
- name: Download Flux CLI
|
||||
get_url:
|
||||
url: "https://github.com/fluxcd/flux2/releases/download/{{ flux_version }}/flux_{{ flux_version | replace('v', '') }}_linux_amd64.tar.gz"
|
||||
url: >-
|
||||
https://github.com/fluxcd/flux2/releases/download/
|
||||
{{- flux_version }}/
|
||||
{{- 'flux_' }}{{ flux_version | replace('v', '') }}_linux_amd64.tar.gz
|
||||
dest: /tmp/flux.tar.gz
|
||||
mode: '0644'
|
||||
when: flux_installed.rc != 0
|
||||
|
|
@ -18,7 +20,7 @@
|
|||
unarchive:
|
||||
src: /tmp/flux.tar.gz
|
||||
dest: /usr/local/bin
|
||||
remote_src: yes
|
||||
remote_src: true
|
||||
creates: /usr/local/bin/flux
|
||||
when: flux_installed.rc != 0
|
||||
|
||||
|
|
@ -43,5 +45,8 @@
|
|||
|
||||
- name: Display FluxCD installation status
|
||||
debug:
|
||||
msg: "FluxCD installed successfully. Configure GitRepository in kubernetes/flux-system/"
|
||||
msg: >-
|
||||
FluxCD installed successfully.
|
||||
Configure GitRepository in kubernetes/flux-system/
|
||||
when: flux_installed.rc != 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue