From 053d571eaa47445b2061befc3f726658ccf3d779 Mon Sep 17 00:00:00 2001 From: bepting Date: Fri, 8 Dec 2023 12:46:05 +0100 Subject: [PATCH] . --- .ansible-lint | 9 +++++++ .github/workflows/ansible-linting-check.yml | 22 +++++++++++++++++ .gitignore | 10 ++++++++ .travis.yml | 27 +++++++++++++++++++++ .yamllint | 12 +++++++++ 5 files changed, 80 insertions(+) create mode 100644 .ansible-lint create mode 100644 .github/workflows/ansible-linting-check.yml create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 .yamllint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..a48e52d --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,9 @@ +use_default_rules: true + +exclude_paths: + - venv/ + - molecule/default/ + - tests/ + +#skip_list: +# - '301' diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml new file mode 100644 index 0000000..41dcb97 --- /dev/null +++ b/.github/workflows/ansible-linting-check.yml @@ -0,0 +1,22 @@ +--- +name: Ansible Lint check + +# yamllint disable-line rule:truthy +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Lint Ansible Playbook + uses: ansible/ansible-lint-action@master + with: + targets: "." + # [required] + # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) + args: "" + # [optional] diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64b554e --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +*.pyc + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..62da97c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +--- +language: python +python: + - "3.7" + +env: + matrix: + - MOLECULE_DISTRO: centos8 + - MOLECULE_DISTRO: centos7 + - MOLECULE_DISTRO: ubuntu2004 + - MOLECULE_DISTRO: ubuntu1804 + - MOLECULE_DISTRO: ubuntu1604 + - MOLECULE_DISTRO: debian10 + - MOLECULE_DISTRO: debian9 + - MOLECULE_DISTRO: fedora33 + +services: + - docker + +install: + - python -m pip -q install -r requirements-travis.txt + +script: + - molecule test + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..16fff78 --- /dev/null +++ b/.yamllint @@ -0,0 +1,12 @@ +--- +extends: default + +rules: + line-length: + max: 100 + level: warning + +ignore: | + /venv/ + /env/ + /molecule/