Skip to content

Commit

Permalink
ci: support ansible-lint and ansible-test 2.16
Browse files Browse the repository at this point in the history
Fix yamllint issue with markdownlint config

Use FQCN for community.general modules

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
  • Loading branch information
richm committed Jan 6, 2024
1 parent 713b045 commit 431a979
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
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

0 comments on commit 431a979

Please sign in to comment.