Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Workaround for CentOS 10 issues in openssh #167

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ansible-centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,16 @@ jobs:
group: local
hosts: localhost
targets: "tests/tests_*.yml"

centos-10:
runs-on: ubuntu-latest
steps:
- name: checkout PR
uses: actions/checkout@v4

- name: ansible check with centos 10
uses: roles-ansible/check-ansible-centos-centos10-action@main
with:
group: local
hosts: localhost
targets: "tests/tests_*.yml"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An Ansible role for managing ssh clients configuration.
This role should work on any system that provides openssh client and is
supported by ansible. The role was tested on:

* RHEL/CentOS 6, 7, 8, 9
* RHEL/CentOS 6, 7, 8, 9, 10
* Fedora
* Debian
* Ubuntu
Expand Down
10 changes: 5 additions & 5 deletions tests/tests_match.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ssh:
Match:
- Condition: user testuser
Compression: true
LogLevel: DEBUG2
- Condition: host example
Hostname: example.com
Host:
Expand All @@ -39,7 +39,7 @@
assert:
that:
- "'Match user testuser' in config.content | b64decode"
- "'Compression yes' in config.content | b64decode"
- "'LogLevel DEBUG2' in config.content | b64decode"
- "'Match host example' in config.content | b64decode"
- "'Hostname example.com' in config.content | b64decode"
- "'Host local' in config.content | b64decode"
Expand Down Expand Up @@ -70,9 +70,9 @@
- name: Verify the options are correctly evaluated
assert:
that:
- "'compression yes' in test1.stdout"
- "'compression yes' not in test2.stdout"
- "'compression yes' not in test3.stdout"
- "'loglevel DEBUG2' in test1.stdout"
- "'loglevel DEBUG2' not in test2.stdout"
- "'loglevel DEBUG2' not in test3.stdout"
- "'hostname example.com' in test1.stdout"
- "'hostname example.com' not in test2.stdout"
- "'hostname example.com' not in test3.stdout"
Expand Down
Loading