Skip to content

Commit

Permalink
Generated Ansible files
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Nov 5, 2023
1 parent 3ecf39a commit 3a854dd
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 31 deletions.
18 changes: 9 additions & 9 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# Ansible managed
#
exclude_paths:
- ./meta/preferences.yml
- ./molecule/default/prepare.yml
- ./molecule/default/converge.yml
- ./molecule/default/verify.yml
- ./molecule/default/collections.yml
- ./.tox
- ./.cache
- ./.github
- ./requirements.yml
- meta/preferences.yml
- molecule/default/prepare.yml
- molecule/default/converge.yml
- molecule/default/verify.yml
- molecule/default/collections.yml
- .tox
- .cache
- .github
- requirements.yml

skip_list:
- yaml[truthy]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: galaxy
uses: buluma/[email protected]
# uses: buluma/[email protected] # TODO: rebuild action
uses: robertdebock/[email protected]
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
git_branch: master
8 changes: 4 additions & 4 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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:
Expand All @@ -41,7 +41,7 @@ jobs:
matrix:
config:
- image: "debian-systemd"
tag: "latest"
tag: "bullseye"
- image: "docker-opensuse-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
Expand All @@ -52,15 +52,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: molecule
uses: buluma/[email protected].7
uses: buluma/[email protected].9
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
9 changes: 5 additions & 4 deletions .github/workflows/requirements2png.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
#

on:
- push

push:
paths:
- '.github/workflows/requirements2png.yml'
name: Ansible Graphviz

jobs:
Expand All @@ -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/[email protected] # TODO: Update action
uses: buluma/[email protected] # TODO: Update action
- name: Commit files
run: |
cd ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: "actions/checkout@master"
- name: "TODO to Issue"
uses: "alstr/[email protected]" # TODO: Update buluma/[email protected] @buluma
uses: "alstr/[email protected]" # TODO: Update buluma/[email protected] @buluma
id: "todo"
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
image: "buluma/github-action-molecule:5.0.7"
image: "buluma/github-action-molecule:5.0.9"

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"
tag: "bullseye"
- image: "docker-opensuse-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Install and configure zabbix_web on your system.

|GitHub|GitLab|Quality|Downloads|Version|Issues|Pull Requests|
|------|------|-------|---------|-------|------|-------------|
|[![github](https://github.com/buluma/ansible-role-zabbix_web/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-zabbix_web/actions)|[![gitlab](https://gitlab.com/shadowwalker/ansible-role-zabbix_web/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-zabbix_web)|[![quality](https://img.shields.io/ansible/quality/57968)](https://galaxy.ansible.com/buluma/zabbix_web)|[![downloads](https://img.shields.io/ansible/role/d/57968)](https://galaxy.ansible.com/buluma/zabbix_web)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-zabbix_web.svg)](https://github.com/buluma/ansible-role-zabbix_web/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-zabbix_web.svg)](https://github.com/buluma/ansible-role-zabbix_web/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-zabbix_web.svg)](https://github.com/buluma/ansible-role-zabbix_web/pulls/)|
|GitHub|GitLab|Downloads|Version|Issues|Pull Requests|
|------|------|-------|-------|------|-------------|
|[![github](https://github.com/buluma/ansible-role-zabbix_web/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-zabbix_web/actions)|[![gitlab](https://gitlab.com/shadowwalker/ansible-role-zabbix_web/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-zabbix_web)|[![downloads](https://img.shields.io/ansible/role/d/4890)](https://galaxy.ansible.com/buluma/zabbix_web)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-zabbix_web.svg)](https://github.com/buluma/ansible-role-zabbix_web/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-zabbix_web.svg)](https://github.com/buluma/ansible-role-zabbix_web/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-zabbix_web.svg)](https://github.com/buluma/ansible-role-zabbix_web/pulls/)|

## [Example Playbook](#example-playbook)

Expand Down
1 change: 1 addition & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#
[tox]
minversion = 4.2.4
envlist = py{311}-ansible{5,6,7}
envlist = py3-ansible{6,7,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}
Expand Down

0 comments on commit 3a854dd

Please sign in to comment.