Skip to content

Commit

Permalink
Merge pull request dev-sec#58 from szEvEz/master
Browse files Browse the repository at this point in the history
Run ansible-lint via github action
  • Loading branch information
rndmh3ro committed Oct 18, 2020
2 parents c3e7090 + 34c11bb commit 8c00d14
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Ansible Lint

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: ""
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# mysql-hardening (Ansible role)

[![Build Status](http://img.shields.io/travis/dev-sec/ansible-mysql-hardening.svg)][1]
![Ansible Lint](https://github.com/dev-sec/ansible-mysql-hardening/workflows/Ansible%20Lint/badge.svg?branch=master)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-mysql--hardening-660198.svg)][3]

## Description
Expand Down
4 changes: 3 additions & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
apt:
update_cache: true
when: ansible_os_family == 'Debian'
- file:
- name: Create mysql directory if it does not exist
file:
path: "/etc/mysql"
state: directory
mode: 0755
- name: install procps for debian systems
apt:
name: procps
Expand Down

0 comments on commit 8c00d14

Please sign in to comment.