
Latest versions of CentOS and RHEL already have YUM deprecated and future versions would drop support. This commit moves browbeat to use the package module instead of yum. Package module will select DNF if it is available on the system rather than yum. Change-Id: I5892fd6209e3be7f3cb69bcfe3df54726043354a
36 lines
774 B
YAML
36 lines
774 B
YAML
---
|
|
#
|
|
# Tests common to Director/Controller/Compute/Ceph
|
|
#
|
|
- name: Ensure crudini
|
|
command: which crudini
|
|
changed_when: no
|
|
register: crudini
|
|
ignore_errors: True
|
|
|
|
- name: Install Crudini if it is not there
|
|
package:
|
|
name: crudini
|
|
state: present
|
|
when: crudini.rc == 1
|
|
|
|
- name: Get selinux mode
|
|
command: getenforce
|
|
changed_when: no
|
|
register: sestatus
|
|
|
|
- name: Check tuned running on host
|
|
command: tuned-adm active
|
|
register: tuned_result
|
|
changed_when: no
|
|
failed_when: tuned_result.rc == -1
|
|
ignore_errors: True
|
|
|
|
- name: Check tuned for correct profile on host
|
|
command: tuned-adm active
|
|
register: tuned_profile_result
|
|
changed_when: no
|
|
failed_when: "'{{ tuned_profile }}' not in '{{ tuned_profile_result.stdout }}'"
|
|
ignore_errors: True
|
|
|