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.
jenkins-master
Dustin 2018-01-07 11:26:31 -06:00
parent e327db1f4f
commit b870daff58
2 changed files with 15 additions and 0 deletions

12
roles/base/tasks/main.yml Normal file
View 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

View File

@ -0,0 +1,3 @@
selinux_python_libs:
- libselinux-python3
- policycoreutils-python3