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

ci: support ansible-lint and ansible-test 2.16 #223

Merged
merged 1 commit into from
Jan 6, 2024
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
4 changes: 2 additions & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exclude_paths:
- .markdownlint.yaml
- examples/roles/
mock_modules:
- sefcontext
- selogin
- community.general.sefcontext
- community.general.selogin
mock_roles:
- linux-system-roles.selinux
1 change: 1 addition & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Default state for all rules
default: true

Expand Down
1 change: 1 addition & 0 deletions library/local_semodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
description:
- Use other than current SELinux module store, e.g. mls, minimum, refpolicy ...
type: str
default: ""
notes:
- The changes are persistent across reboots.
- Not tested on any debian based system.
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
loop_var: __selinux_item

- name: Set SELinux file contexts
sefcontext:
community.general.sefcontext:
target: "{{ __selinux_item.target }}"
setype: "{{ __selinux_item.setype }}"
ftype: "{{ __selinux_item.ftype | default('a') }}"
Expand All @@ -101,7 +101,7 @@
loop_var: __selinux_item

- name: Set linux user to SELinux user mapping
selogin:
community.general.selogin:
login: "{{ __selinux_item.login }}"
seuser: "{{ __selinux_item.seuser }}"
serange: "{{ __selinux_item.serange | default('s0') }}"
Expand Down