browbeat/ansible/check/roles/common/tasks/main.yml

34 lines
759 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
yum: name=crudini state=latest
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