browbeat/ansible/check/roles/common/tasks/main.yml
Joe Talerico 069d37eee1 Updating Checks and output
Change-Id: I203944c1f172d5ee395e13ea11945a342628baac
2015-12-21 12:46:02 +01:00

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