From b4c1470c66c9fc0cbd9e9feb3a7d8e0e58f434e7 Mon Sep 17 00:00:00 2001 From: Prakash Date: Tue, 28 Apr 2020 18:24:30 +0530 Subject: [PATCH 1/5] auto service start --- tasks/install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/install.yml b/tasks/install.yml index ef4f024..cf24225 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -22,6 +22,7 @@ service: name: nginx state: restarted + enabled: true changed_when: false - name: wait for nginx to become ready From ccffddcef9ff95ff1621e05169c228db59175671 Mon Sep 17 00:00:00 2001 From: Prakash Date: Wed, 13 May 2020 17:55:32 +0530 Subject: [PATCH 2/5] lint apply --- .github/workflows/lint.yml | 31 +++++++++++++++++++++++++++++++ .yamllint | 9 +++++++++ 2 files changed, 40 insertions(+) create mode 100755 .github/workflows/lint.yml create mode 100755 .yamllint diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100755 index 0000000..991b2c6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +--- +name: Lint +'on': + pull_request: + push: + branches: + - master + +jobs: + + test: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Check out the codebase. + uses: actions/checkout@v2 + + - name: Set up Python 3.7. + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install test dependencies. + run: pip3 install yamllint ansible-lint + + - name: Run yamllint. + run: yamllint . + + - name: Run ansible-lint. + run: ansible-lint diff --git a/.yamllint b/.yamllint new file mode 100755 index 0000000..8f19687 --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +--- +extends: default + +rules: + line-length: + max: 120 + level: warning + truthy: + allowed-values: ['true', 'false', 'yes', 'no'] From df6cc25441011d8261d6c906ef39b6f88fd20ac8 Mon Sep 17 00:00:00 2001 From: Prakash Date: Thu, 14 May 2020 21:10:14 +0530 Subject: [PATCH 3/5] lint apply --- tasks/users.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/users.yml b/tasks/users.yml index 87bbea5..da778c4 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -10,3 +10,4 @@ name: "{{ nginx_user }}" system: true group: "{{ nginx_group }}" + From d89e4aee6ec574159241c390fd00ab1c4857ee2d Mon Sep 17 00:00:00 2001 From: Prakash Date: Thu, 14 May 2020 21:15:36 +0530 Subject: [PATCH 4/5] lint apply --- tasks/users.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/users.yml b/tasks/users.yml index da778c4..87bbea5 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -10,4 +10,3 @@ name: "{{ nginx_user }}" system: true group: "{{ nginx_group }}" - From 0e522e3ceefd9f676c6a0f6dc6e9e29022dd2765 Mon Sep 17 00:00:00 2001 From: Prakash Date: Thu, 14 May 2020 21:22:57 +0530 Subject: [PATCH 5/5] lint apply --- .github/workflows/lint.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 991b2c6..150fa99 100755 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,3 +29,14 @@ jobs: - name: Run ansible-lint. run: ansible-lint + + - name: 'Slack Notification' + uses: clouddrove/action-slack@v2 + with: + status: ${{ job.status }} + fields: repo,author + author_name: 'Clouddrove' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} + if: always()