Skip to content

Commit

Permalink
rename validate handler
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Aug 19, 2024
1 parent b9b9ee5 commit 1f976f7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/configured.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
debian:
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python }}"
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}"
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }}
strategy:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
-e DISTRIBUTION="${{ matrix.image }}"
ubuntu:
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python }}"
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}"
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }}
strategy:
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
-e DISTRIBUTION="${{ matrix.image }}"
scenarios:
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python }}"
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}"
runs-on: ubuntu-22.04
needs:
- debian
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
arch:
name: "${{ matrix.image }} / ansible ${{ matrix.ansible-version }} / python ${{ matrix.python }}"
name: "${{ matrix.image }} / ansible ${{ matrix.ansible-version }} / python ${{ matrix.python_version }}"
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }}
strategy:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
export TOX_SCENARIO ?= default
export TOX_ANSIBLE ?= ansible_6.1
export TOX_ANSIBLE ?= ansible_8.5

.PHONY: converge destroy verify test lint

Expand Down
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name: glauth
state: reloaded

- name: validate config # noqa no-changed-when
- name: validate glauth config # noqa no-changed-when
ansible.builtin.command: |
glauth --check-config -c {{ glauth_config_dir }}/glauth.conf
when:
Expand Down
1 change: 0 additions & 1 deletion molecule/2.x/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ provisioner:

scenario:
test_sequence:
# - lint
- destroy
- dependency
- syntax
Expand Down
6 changes: 6 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
ansible.builtin.package:
update_cache: true

- name: install dependencies
ansible.builtin.package:
name:
- iproute2
state: present

- name: environment
ansible.builtin.debug:
msg:
Expand Down
3 changes: 1 addition & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ ansible-lint
docker
dnspython
flake8
molecule>=5.0.1
molecule
molecule-plugins[docker]
netaddr
pytest
pytest-testinfra
tox
tox-gh-actions
Expand Down
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[tox]
ignore_basepython_conflict = True
skip_missing_interpreters = True

minversion = 3.25
toxworkdir = /tmp/.tox/

envlist = ansible_{2.9,2.10,3.4,4.10,5.1,5.2,6.1}

skipsdist = true

[testenv]
Expand All @@ -26,6 +27,9 @@ deps =
ansible_7.5: ansible>=7.5,<7.6
ansible_8.0: ansible>=8.0,<8.1
ansible_8.5: ansible>=8.5,<8.6
ansible_9.0: ansible>=9.0,<9.1
ansible_9.5: ansible>=9.5,<9.6
ansible_10.0: ansible>=10.0,<10.1

#commands_pre =
# /usr/bin/find {toxinidir} -type f -not -path '{toxworkdir}/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
Expand Down

0 comments on commit 1f976f7

Please sign in to comment.