diff --git a/.config/ansible-lint-ignore.txt b/.config/ansible-lint-ignore.txt index c0e0ac6..f53de8b 100644 --- a/.config/ansible-lint-ignore.txt +++ b/.config/ansible-lint-ignore.txt @@ -1,7 +1,6 @@ playbook.yml yaml[trailing-spaces] playbook.yml fqcn[action-core] playbook.yml yaml[indentation] -playbook.yml yaml[new-line-at-end-of-file] playbook.yml yaml[line-length] playbook.yml package-latest destroyinf.yml fqcn[action-core] diff --git a/.github/workflows/destroy.yml b/.github/workflows/destroy.yml index 7dde45f..395d21d 100644 --- a/.github/workflows/destroy.yml +++ b/.github/workflows/destroy.yml @@ -1,3 +1,4 @@ +--- name: Destroy infrastracture on: workflow_dispatch @@ -29,3 +30,4 @@ jobs: # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Destroy run: terraform destroy -auto-approve -input=false -var-file=my_variables.tfvars +... \ No newline at end of file diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index 3f34402..0ff454a 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -1,4 +1,5 @@ -name: Lint +--- +name: Tflint on: push: branches: main @@ -37,4 +38,5 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: Run TFLint - run: tflint -f compact \ No newline at end of file + run: tflint -f compact +... \ No newline at end of file diff --git a/aws_ec2.yml b/aws_ec2.yml index 784927b..265e581 100644 --- a/aws_ec2.yml +++ b/aws_ec2.yml @@ -1,7 +1,8 @@ +--- plugin: amazon.aws.aws_ec2 regions: - ap-southeast-1 filter: tag:cicd: sys1 - \ No newline at end of file +... \ No newline at end of file diff --git a/destroyinf.yml b/destroyinf.yml index 8aa602a..9050c1a 100644 --- a/destroyinf.yml +++ b/destroyinf.yml @@ -16,4 +16,4 @@ apt: name: apache2 state: absent - \ No newline at end of file +... \ No newline at end of file diff --git a/playbook.yml b/playbook.yml index aefbc07..5bc8c83 100644 --- a/playbook.yml +++ b/playbook.yml @@ -43,4 +43,5 @@ - docker-ce-cli - containerd.io - docker-buildx-plugin - - docker-compose-plugin \ No newline at end of file + - docker-compose-plugin +... \ No newline at end of file