roles/base: Basic config management support
The *base* role performs the basic tasks needed to manage a node using Ansible. Specifically, it installs the necessary packages for manipulating SELinux policy.
This commit is contained in:
12
roles/base/tasks/main.yml
Normal file
12
roles/base/tasks/main.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
- name: load distribution-specific values
|
||||||
|
include_vars: '{{ item }}'
|
||||||
|
with_first_found:
|
||||||
|
- '{{ ansible_distribution }}.yml'
|
||||||
|
- defaults.yml
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
|
- name: ensure selinux python bindings are installed
|
||||||
|
package:
|
||||||
|
name={{ selinux_python_libs|join(',') }}
|
||||||
|
state=present
|
||||||
3
roles/base/vars/defaults.yml
Normal file
3
roles/base/vars/defaults.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
selinux_python_libs:
|
||||||
|
- libselinux-python3
|
||||||
|
- policycoreutils-python3
|
||||||
Reference in New Issue
Block a user