From cdf3205462b8763d0445d5f4d28db9cfc6020a54 Mon Sep 17 00:00:00 2001 From: Jonas Lilja Date: Sun, 28 Jan 2024 22:06:06 +0100 Subject: [PATCH] Linting fixes --- .github/workflows/terraform-plan.yml | 4 +++- ansible/minikube/ansible/harden_ssh.yml | 2 +- ansible/minikube/ansible/install_deps.yml | 6 +++--- ansible/minikube/bootstrapping/bootstrap.yml | 2 +- k8s/apps/webserver/nginx.yml | 8 ++++---- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/terraform-plan.yml b/.github/workflows/terraform-plan.yml index 8ee59f1..335b427 100644 --- a/.github/workflows/terraform-plan.yml +++ b/.github/workflows/terraform-plan.yml @@ -81,7 +81,9 @@ jobs: const output = `#### Terraform Cloud Plan Output \`\`\` - Plan: ${{ steps.plan-output.outputs.add }} to add, ${{ steps.plan-output.outputs.change }} to change, ${{ steps.plan-output.outputs.destroy }} to destroy. + Plan: ${{ steps.plan-output.outputs.add }} to add, + ${{ steps.plan-output.outputs.change }} to change, + ${{ steps.plan-output.outputs.destroy }} to destroy. \`\`\` `; diff --git a/ansible/minikube/ansible/harden_ssh.yml b/ansible/minikube/ansible/harden_ssh.yml index fa2a54b..292978b 100644 --- a/ansible/minikube/ansible/harden_ssh.yml +++ b/ansible/minikube/ansible/harden_ssh.yml @@ -13,7 +13,7 @@ # Taken from https://github.com/geerlingguy/ansible-for-devops/blob/master/security/main.yml - name: Update SSH configuration to be more secure. - lineinfile: + ansible.builtin.lineinfile: dest: /etc/ssh/sshd_config regexp: "{{ item.regexp }}" line: "{{ item.line }}" diff --git a/ansible/minikube/ansible/install_deps.yml b/ansible/minikube/ansible/install_deps.yml index 311613d..03b2a2d 100644 --- a/ansible/minikube/ansible/install_deps.yml +++ b/ansible/minikube/ansible/install_deps.yml @@ -6,15 +6,15 @@ tasks: - name: Install docker plugins core - dnf: + ansible.builtin.dnf: name: dnf-plugins-core state: present - name: Add docker repository - command: dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo + ansible.builtin.command: dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo - name: Install docker engine, containerd, and docker compose - dnf: + ansible.builtin.dnf: name: - docker-ce - docker-ce-cli diff --git a/ansible/minikube/bootstrapping/bootstrap.yml b/ansible/minikube/bootstrapping/bootstrap.yml index ba5f2ae..bbcb829 100644 --- a/ansible/minikube/bootstrapping/bootstrap.yml +++ b/ansible/minikube/bootstrapping/bootstrap.yml @@ -1,7 +1,7 @@ --- -- name: playbook +- name: Create and authorize user hosts: all become: true tasks: diff --git a/k8s/apps/webserver/nginx.yml b/k8s/apps/webserver/nginx.yml index 719a28f..3198e55 100644 --- a/k8s/apps/webserver/nginx.yml +++ b/k8s/apps/webserver/nginx.yml @@ -15,10 +15,10 @@ spec: app: nginxdeployment spec: containers: - - image: ghcr.io/home-assistant/home-assistant:stable - name: nginxdeployment - ports: - - containerPort: 8123 + - image: ghcr.io/home-assistant/home-assistant:stable + name: nginxdeployment + ports: + - containerPort: 8123 --- apiVersion: v1 kind: Service