Provided basic configuration for ansible linter
Some checks reported errors
--> Linted: ANSIBLE Errors were detected, please view logs
--> Linted: GITLEAKS No errors were found in the linting process
--> Linted: JSCPD No errors were found in the linting process
--> Linted: YAML No errors were found in the linting process
Lint Code Base / run-lint (push) Failing after 37s

This commit is contained in:
Davide Oddone 2024-10-17 18:31:23 +02:00
parent ce55ca5303
commit ae68481f98
2 changed files with 9 additions and 1 deletions

4
.ansible-lint.yml Normal file
View File

@ -0,0 +1,4 @@
---
# .ansible-lint
#
profile: min

View File

@ -19,8 +19,10 @@
- name: Remove Keyrings Directory (if it exists)
ansible.builtin.command: rm -rf /etc/apt/keyrings
- name: Remove Existing Kubernetes Directory (if it exists)
ansible.builtin.command: sudo rm -rf /etc/apt/sources.list.d/pkgs_k8s_io_core_stable_v1_31_deb.list
- name: Disable swap
ansible.builtin.command:
cmd: swapoff -a
@ -121,7 +123,9 @@
mode: "0755"
- name: Download Kubernetes GPG key securely
ansible.builtin.shell: curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
ansible.builtin.shell: |
set -o pipefail
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
- name: Add Kubernetes repository
ansible.builtin.apt_repository: