From 92c33b09b0426ca75701999c824a7b08db844a85 Mon Sep 17 00:00:00 2001 From: Kev Jimenez Date: Thu, 1 Feb 2024 04:59:05 +0000 Subject: [PATCH] cleaned yaml --- .config/ansible-lint.yml | 2 ++ .github/workflows/ansiblelint.yml | 4 +++- .github/workflows/deploy.yml | 4 +++- .github/workflows/destroy.yml | 1 - .github/workflows/tflint.yml | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.config/ansible-lint.yml b/.config/ansible-lint.yml index 643a8e7..3754b6a 100644 --- a/.config/ansible-lint.yml +++ b/.config/ansible-lint.yml @@ -1,3 +1,5 @@ +--- exclude_paths: - .github/ # implicit unless exclude_paths is defined in config - .config/ +... \ No newline at end of file diff --git a/.github/workflows/ansiblelint.yml b/.github/workflows/ansiblelint.yml index b63afbd..7614696 100644 --- a/.github/workflows/ansiblelint.yml +++ b/.github/workflows/ansiblelint.yml @@ -1,3 +1,4 @@ +--- # .github/workflows/ansible-lint.yml name: ansible-lint on: @@ -12,4 +13,5 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run ansible-lint - uses: ansible/ansible-lint@main # or version tag instead of 'main' \ No newline at end of file + uses: ansible/ansible-lint@main # or version tag instead of 'main' +... diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 702bda6..4bf9265 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,3 +1,4 @@ +--- name: Deploy infrastracture on: workflow_dispatch @@ -30,4 +31,5 @@ jobs: run: sleep 7s - name: Run Ansible Playbook - run: ansible-playbook -i aws_ec2.yml playbook.yml \ No newline at end of file + run: ansible-playbook -i aws_ec2.yml playbook.yml +... diff --git a/.github/workflows/destroy.yml b/.github/workflows/destroy.yml index 395d21d..fb48809 100644 --- a/.github/workflows/destroy.yml +++ b/.github/workflows/destroy.yml @@ -7,7 +7,6 @@ jobs: deploy: runs-on: cicd1 - steps: - name: Checkout code diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index 0ff454a..78974dc 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -14,7 +14,7 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Checkout source code - uses: actions/cache@v3 @@ -39,4 +39,4 @@ jobs: - name: Run TFLint run: tflint -f compact -... \ No newline at end of file +...