Reorder installs to get selinux support earlier
Ansible cannot set file contexts unless selinux python bindings are installed.
This commit is contained in:
parent
47e5fe321c
commit
b7e0ef18c5
1 changed files with 10 additions and 11 deletions
|
@ -4,13 +4,22 @@
|
|||
name: epel-release
|
||||
state: installed
|
||||
|
||||
- name: install os specific roles
|
||||
include_role:
|
||||
name: "{{ role }}"
|
||||
with_items:
|
||||
- selinux # selinux first to get fcontexts working
|
||||
- iptables
|
||||
- rsyslog
|
||||
loop_control:
|
||||
loop_var: role
|
||||
|
||||
- name: install packages
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
with_items:
|
||||
- bind-utils # dig
|
||||
- emacs # better editor :)
|
||||
- htop # system monitoring
|
||||
- iftop # monitor interfaces
|
||||
- iotop # monitor io usage
|
||||
|
@ -36,13 +45,3 @@
|
|||
hour: "3"
|
||||
minute: "{{ 59 | random(seed=inventory_hostname) }}"
|
||||
job: "yum -d 0 -e 0 -y --downloadonly update > /dev/null"
|
||||
|
||||
- name: install os specific roles
|
||||
include_role:
|
||||
name: "{{ role }}"
|
||||
with_items:
|
||||
- iptables
|
||||
- rsyslog
|
||||
- selinux
|
||||
loop_control:
|
||||
loop_var: role
|
||||
|
|
Loading…
Add table
Reference in a new issue