Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Last active August 25, 2025 02:22
Show Gist options
  • Save luckylittle/1386a3035b0731b23693c2ed191f0a24 to your computer and use it in GitHub Desktop.
Save luckylittle/1386a3035b0731b23693c2ed191f0a24 to your computer and use it in GitHub Desktop.
Test inventory
[all]
ssh.ocpv08.rhdp.net:30265
nonexistent.host.com
---
- name: Managing SELinux
hosts: all
tasks:
- name: Restore SELinux context
ansible.builtin.include_role:
name: redhat.rhel_system_roles.selinux
vars:
selinux_restore_dirs:
- /var/www/
- /etc/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment