diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..c8abced --- /dev/null +++ b/.ansible-lint-ignore @@ -0,0 +1,100 @@ +# This file contains ignores rule violations for ansible-lint +meta/main.yml meta-incorrect +meta/main.yml schema[meta] +tasks/anawiki.yaml fqcn[action] +tasks/anawiki.yaml yaml[comments] +tasks/collabora.yaml fqcn[action-core] +tasks/collabora.yaml no-changed-when +tasks/collabora.yaml no-handler +tasks/collabora.yaml yaml[indentation] +tasks/coturn.yaml fqcn[action-core] +tasks/coturn.yaml no-changed-when +tasks/coturn.yaml no-handler +tasks/coturn.yaml yaml[indentation] +tasks/demowiki.yaml fqcn[action] +tasks/demowiki.yaml yaml[indentation] +tasks/dex.yaml fqcn[action-core] +tasks/dex.yaml no-changed-when +tasks/dex.yaml no-handler +tasks/dex.yaml yaml[indentation] +tasks/discourse-onion.yaml fqcn[action] +tasks/discourse-onion.yaml name[casing] +tasks/discourse-onion.yaml yaml[empty-lines] +tasks/fictwiki.yaml fqcn[action] +tasks/fictwiki.yaml yaml[empty-lines] +tasks/full.yaml fqcn[action-core] +tasks/full.yaml yaml[trailing-spaces] +tasks/gitea.yaml fqcn[action-core] +tasks/gitea.yaml no-changed-when +tasks/gitea.yaml no-handler +tasks/gitea.yaml yaml[indentation] +tasks/grafana-matrix-forwarder.yaml fqcn[action] +tasks/influxdb.yaml fqcn[action] +tasks/influxdb.yaml yaml[indentation] +tasks/jupyterhub.yaml fqcn[action-core] +tasks/jupyterhub.yaml no-changed-when +tasks/jupyterhub.yaml no-handler +tasks/jupyterhub.yaml yaml[indentation] +tasks/lemmy.yaml fqcn[action] +tasks/localai.yaml fqcn[action-core] +tasks/localai.yaml no-changed-when +tasks/localai.yaml no-handler +tasks/mail.yaml fqcn[action] +tasks/mail.yaml name[casing] +tasks/mail.yaml yaml[empty-lines] +tasks/main.yaml fqcn[action-core] +tasks/mariadb.yaml fqcn[action] +tasks/mariadb.yaml yaml[indentation] +tasks/mastodon.yaml yaml[indentation] +tasks/mastodon.yaml yaml[line-length] +tasks/mastodon.yaml yaml[trailing-spaces] +tasks/matrix-auth-service.yaml fqcn[action-core] +tasks/matrix-auth-service.yaml no-changed-when +tasks/matrix-auth-service.yaml no-handler +tasks/matrix-new.yaml yaml[indentation] +tasks/matrix-new.yaml yaml[line-length] +tasks/matrix.yaml fqcn[action-core] +tasks/matrix.yaml no-changed-when +tasks/matrix.yaml no-handler +tasks/matrix.yaml yaml[comments] +tasks/matrix.yaml yaml[indentation] +tasks/matrix.yaml yaml[key-duplicates] +tasks/matrix.yaml yaml[trailing-spaces] +tasks/matterbridge.yaml fqcn[action] +tasks/mediawiki.yaml fqcn[action] +tasks/mediawiki.yaml yaml[comments] +tasks/meidawiki-extended.yaml fqcn[action] +tasks/meidawiki-extended.yaml yaml[indentation] +tasks/monero-hidden.yaml fqcn[action] +tasks/monero-hidden.yaml yaml[empty-lines] +tasks/monero.yaml fqcn[action] +tasks/monero.yaml name[casing] +tasks/monero.yaml yaml[empty-lines] +tasks/mongodb.yaml fqcn[action] +tasks/mongodb.yaml yaml[indentation] +tasks/nextcloud.yaml fqcn[action-core] +tasks/nextcloud.yaml no-changed-when +tasks/nextcloud.yaml no-handler +tasks/nextcloud.yaml yaml[comments] +tasks/nextcloud.yaml yaml[indentation] +tasks/obs-web.yaml fqcn[action] +tasks/openldap.yaml fqcn[action] +tasks/org.yaml fqcn[action] +tasks/org.yaml yaml[indentation] +tasks/owncast.yaml fqcn[action] +tasks/owncast.yaml yaml[indentation] +tasks/p2pool.yaml fqcn[action] +tasks/p2pool.yaml yaml[empty-lines] +tasks/phpldapadmin.yaml fqcn[action] +tasks/phpldapadmin.yaml yaml[indentation] +tasks/pleroma.yaml fqcn[action] +tasks/pleroma.yaml yaml[indentation] +tasks/postgresql.yaml yaml[line-length] +tasks/prometheus.yaml yaml[indentation] +tasks/prometheus.yaml yaml[trailing-spaces] +tasks/tes3mp.yaml fqcn[action] +tasks/webhookd.yaml fqcn[action] +tasks/webhookd.yaml yaml[octal-values] +tasks/wiki.yaml fqcn[action] +tasks/wiki.yaml yaml[indentation] +tests/test.yml name[play] diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 0000000..ce988bf --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,27 @@ +# ansible-lint for this role. DevOps/software-infrastructure#53 (G5). +# Uses the shared reusable workflow; see docs/ci-cd/adding-ci.md in +# DevOps/software-infrastructure. Known findings are baselined in +# .ansible-lint-ignore, so only new problems fail. +# +# Manual-only until the shared runner is proven stable (#41) and the CI +# tools image is published (#49). Then replace `on:` with: +# +# on: +# push: +# branches: [main] +# pull_request: +name: lint + +on: + workflow_dispatch: + +concurrency: + group: lint-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + ansible: + uses: DevOps/software-infrastructure/.gitea/workflows/reusable-ansible-role-lint.yaml@main