Compare commits
2 Commits
518babe328
...
c8d3de3d8d
Author | SHA1 | Date | |
---|---|---|---|
c8d3de3d8d | |||
4ed15e5ea8 |
@ -71,6 +71,7 @@ Inventory variables are defined for individual hosts or VMs in the inventory fil
|
||||
| Variable | Description | Example Value |
|
||||
|-------------------------|-----------------------------------------------------------------------------------|----------------------------------------------------|
|
||||
| `cis` (optional) | Adjusts the installation to be CIS level 3 conformant. | `true`, `false` |
|
||||
| `selinux` (optional) | Toggle SELinux, `false` means it should be disabled.` | `true`, `false` |
|
||||
| `filesystem` | Filesystem type for the VM's primary storage. | `btrfs`, `ext4`, `xfs` |
|
||||
| `hostname` | The hostname assigned to the virtual machine or system. | `vm01` |
|
||||
| `os` | Operating system to be installed on the VM. | `archlinux`, `almalinux`, `debian11`, `debian12`, `fedora`, `rhel8`, `rhel9`, `rocky`, `ubuntu`, `ubuntu-lts` |
|
||||
|
@ -313,7 +313,7 @@
|
||||
register: result
|
||||
|
||||
- name: Disable SELinux
|
||||
when: os | lower == "fedora" or not selinux | bool
|
||||
when: os | lower == "fedora" or not (selinux | default(true) | bool)
|
||||
ansible.builtin.lineinfile:
|
||||
path: /mnt/etc/selinux/config
|
||||
regexp: ^SELINUX=
|
||||
|
Loading…
x
Reference in New Issue
Block a user