1
0
Fork 0
forked from infra/ansible
infra-ansible/tasks/compile-selinux.yml
Ryan Lerch 224ae2aed0 Fix yamllint document-start errors by adding YAML document markers
Add document start marker (---) to 28 YAML files that were missing it
to comply with yamllint requirements for proper YAML document structure.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-08-05 21:27:26 +00:00

21 lines
682 B
YAML

---
# In tasks/selinux_module.yml (can be in a common/shared tasks directory)
- name: Compile SELinux module
ansible.builtin.shell: |
cd {{ selinux_module_dir }}
checkmodule -M -m -o {{ selinux_module_name }}.mod {{ selinux_module_name }}.te
semodule_package -o {{ selinux_module_name }}.pp -m {{ selinux_module_name }}.mod
tags:
- selinux
- name: Install SELinux module
ansible.builtin.command: semodule -i {{ selinux_module_dir }}/{{ selinux_module_name }}.pp
tags:
- selinux
- name: Cleanup SELinux module build files
ansible.builtin.file:
path: "{{ selinux_module_dir }}/{{ selinux_module_name }}.mod"
state: absent
tags:
- selinux