069d37eee1
Change-Id: I203944c1f172d5ee395e13ea11945a342628baac
25 lines
549 B
YAML
25 lines
549 B
YAML
---
|
|
#
|
|
# Tests common to Director/Controller/Compute/Ceph
|
|
#
|
|
|
|
- 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
|
|
|