Skip to content

Commit

Permalink
Merge pull request #580 from saito-hideki/stable-1
Browse files Browse the repository at this point in the history
[backport][stable-1] Drop ansible-core 2.14 and set 2.15 minimum version

SUMMARY

Drop ansible-core 2.14 and set 2.15 minimum version.
Modify conditions for selinux integration tests to avoid RHEL7.9 integration test failure.


backports #562
fixes #578

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

ansible.posix(stable-1)

ADDITIONAL INFORMATION
None
  • Loading branch information
softwarefactory-project-zuul[bot] authored Oct 15, 2024
2 parents 3155944 + 73f7519 commit 3fcaa30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelogs/fragments/580_drop_ansible214.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
bugfixes:
- backport - Drop ansible-core 2.14 and set 2.15 minimum version (https://github.com/ansible-collections/ansible.posix/issues/578).
trivial:
- selinux - conditions for selinux integration tests have been modified to be more accurate.
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
requires_ansible: ">=2.14.0"
requires_ansible: ">=2.15.0"
plugin_routing:
callback:
skippy:
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/targets/selinux/tasks/selinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
ansible.builtin.assert:
that:
- selinux_config_original | length == selinux_config_after | length
- selinux_config_after[selinux_config_after.index('SELINUX=disabled')] is search("^SELINUX=\w+$")
- selinux_config_after[selinux_config_after.index('SELINUXTYPE=targeted')] is search("^SELINUXTYPE=\w+$")
- (selinux_config_after | select("search", "^SELINUX=disabled\s*$") | list | length) > 0
- (selinux_config_after | select("search", "^SELINUXTYPE=targeted\s*$") | list | length) > 0

- name: TEST 1 | Disable SELinux again, with kernel arguments update
ansible.posix.selinux:
Expand Down

0 comments on commit 3fcaa30

Please sign in to comment.