diff --git a/.ansible-lint b/.ansible-lint index 5376b90..bbfd783 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -3,18 +3,17 @@ # Ansible managed # exclude_paths: - - ./meta/preferences.yml - - ./molecule/default/prepare.yml - - ./molecule/default/converge.yml - - ./molecule/default/collections.yml - - ./.tox - - ./.cache - - ./.github - - ./requirements.yml + - meta/preferences.yml + - molecule/default/prepare.yml + - molecule/default/converge.yml + - molecule/default/collections.yml + - .tox + - .cache + - .github + - requirements.yml skip_list: - yaml[truthy] - - no-changed-when enable_list: - name[prefix] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 01ce68e..528b917 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,7 @@ about: Create a report to help me improve --- -## Describe the bug +# Describe the bug A clear and concise description of what the bug is. @@ -13,7 +13,6 @@ A clear and concise description of what the bug is. Please paste the playbook you are using. (Consider `requirements.yml` and optionally the command you've invoked.) - ```yaml --- YOUR PLAYBOOK HERE diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 83e7a9f..c73a160 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,7 +4,7 @@ about: Suggest an idea for this project --- -## Proposed feature +# Proposed feature A clear and concise description of what you want to happen. diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index 7e3ea4e..38eca22 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: galaxy - uses: buluma/galaxy-action@v6.25.22 + # uses: buluma/galaxy-action@v6.25.22 # TODO: rebuild action + uses: robertdebock/galaxy-action@1.2.1 with: galaxy_api_key: ${{ secrets.galaxy_api_key }} - git_branch: master diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index a3c9b2c..f54c096 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -20,6 +20,9 @@ on: schedule: - cron: '17 9 9 * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true @@ -29,7 +32,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: ansible-lint uses: ansible-community/ansible-lint-action@main test: @@ -42,6 +45,8 @@ jobs: config: - image: "debian-systemd" tag: "latest" + - image: "debian-systemd" + tag: "bullseye" - image: "docker-ubuntu-systemd" tag: "latest" - image: "docker-ubuntu-systemd" @@ -54,15 +59,15 @@ jobs: tag: "latest" steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: "${{ github.repository }}" - - name: disable apparmor for mysql - run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ - - name: parse apparmor for mysql - run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld + # - name: disable apparmor for mysql + # run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ + # - name: parse apparmor for mysql + # run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: molecule - uses: buluma/molecule-action@v5.0.7 + uses: buluma/molecule-action@v5.1.1 with: image: ${{ matrix.config.image }} tag: ${{ matrix.config.tag }} diff --git a/.github/workflows/requirements2png.yml b/.github/workflows/requirements2png.yml index 9a6ac35..a510c4d 100644 --- a/.github/workflows/requirements2png.yml +++ b/.github/workflows/requirements2png.yml @@ -4,8 +4,9 @@ # on: - - push - + push: + paths: + - '.github/workflows/requirements2png.yml' name: Ansible Graphviz jobs: @@ -15,11 +16,11 @@ jobs: contents: write steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ${{ github.repository }} - name: create png - uses: buluma/graphviz-action@1.0.0 # TODO: Update action + uses: buluma/graphviz-action@1.0.0 # TODO: Update action - name: Commit files run: | cd ${{ github.repository }} diff --git a/.github/workflows/todo.yml b/.github/workflows/todo.yml index e6c7007..7837717 100644 --- a/.github/workflows/todo.yml +++ b/.github/workflows/todo.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: "actions/checkout@master" - name: "TODO to Issue" - uses: "alstr/todo-to-issue-action@v2.3" # TODO: Update buluma/todo-to-issue-action@v1.0.1 @buluma + uses: "alstr/todo-to-issue-action@v2.3" # TODO: Update buluma/todo-to-issue-action@v1.0.1 @buluma id: "todo" with: TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 861e4d1..1280832 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,21 @@ --- -image: "buluma/github-action-molecule:5.0.7" +image: "buluma/github-action-molecule:5.1.1" variables: PY_COLORS: 1 molecule: script: - - if [ -f tox.ini ] ; then tox ; fi - - if [ ! -f tox.ini ] ; then molecule test ; fi + - molecule test rules: - if: $CI_COMMIT_REF_NAME == "master" + allow_failure: true parallel: matrix: - image: "debian-systemd" tag: "latest" + - image: "debian-systemd" + tag: "bullseye" - image: "docker-ubuntu-systemd" tag: "latest" - image: "docker-ubuntu-systemd" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eca47de..6f3deda 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - repo: https://github.com/adrienverge/yamllint - rev: v1.29.0 + rev: v1.32.0 hooks: - id: yamllint args: [-c=.yamllint] diff --git a/README.md b/README.md index 1d94046..a09e6d4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# [influxdb2](#influxdb2) +# [Ansible role influxdb2](#influxdb2) Install and configure InfluxDB 2.0 using Ansible. -|GitHub|GitLab|Quality|Downloads|Version|Issues|Pull Requests| -|------|------|-------|---------|-------|------|-------------| -|[![github](https://github.com/buluma/ansible-role-influxdb2/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-influxdb2/actions)|[![gitlab](https://gitlab.com/shadowwalker/ansible-role-influxdb2/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-influxdb2)|[![quality](https://img.shields.io/ansible/quality/58620)](https://galaxy.ansible.com/buluma/influxdb2)|[![downloads](https://img.shields.io/ansible/role/d/58620)](https://galaxy.ansible.com/buluma/influxdb2)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-influxdb2.svg)](https://github.com/buluma/ansible-role-influxdb2/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-influxdb2.svg)](https://github.com/buluma/ansible-role-influxdb2/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-influxdb2.svg)](https://github.com/buluma/ansible-role-influxdb2/pulls/)| +|GitHub|GitLab|Downloads|Version|Issues|Pull Requests| +|------|------|-------|-------|------|-------------| +|[![github](https://github.com/buluma/ansible-role-influxdb2/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-influxdb2/actions)|[![gitlab](https://gitlab.com/shadowwalker/ansible-role-influxdb2/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-influxdb2)|[![downloads](https://img.shields.io/ansible/role/d/4736)](https://galaxy.ansible.com/buluma/influxdb2)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-influxdb2.svg)](https://github.com/buluma/ansible-role-influxdb2/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-influxdb2.svg)](https://github.com/buluma/ansible-role-influxdb2/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-influxdb2.svg)](https://github.com/buluma/ansible-role-influxdb2/pulls/)| ## [Example Playbook](#example-playbook) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 6c1853e..df7f81f 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -19,6 +19,7 @@ platforms: command: /sbin/init volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw + cgroupns_mode: host privileged: yes pre_build_image: yes provisioner: diff --git a/requirements.txt b/requirements.txt index 09b3a84..8c938d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ -# Pinning ansible-compat version due to [bug](https://github.com/ansible-community/molecule/issues/3903) -ansible-compat == 3.0.2 -molecule == 5.* +ansible-compat == 4.* +molecule == 6.* molecule-plugins[docker] == 23.* ansible-lint == 6.* paramiko == 3.* diff --git a/tox.ini b/tox.ini index 421fa67..52387a8 100644 --- a/tox.ini +++ b/tox.ini @@ -3,16 +3,19 @@ # [tox] minversion = 4.2.4 -envlist = py{311}-ansible{5,6,7} +# Ansible 6 and 7 are disabled, causing issues with Fedora: +# https://github.com/ansible/ansible/issues/81199#event-9773321055 +# envlist = py3-ansible{6,7,8} +envlist = py3-ansible{8} skipsdist = true [testenv] deps = -rrequirements.txt - ansible5: ansible == 5.* ansible6: ansible == 6.* ansible7: ansible == 7.* + ansible8: ansible == 8.* commands = molecule test setenv = TOX_ENVNAME={envname}