
The Undercloud node in a OOO deployment no longer ships with crudini installed. This is to account for that. Eventually we should move away from crudini and use the builtin module from ansible. Change-Id: I8188638b089f1fadf878350cbe43c0e6426b7d89
34 lines
757 B
YAML
34 lines
757 B
YAML
---
|
|
#
|
|
# Tests common to Director/Controller/Compute/Ceph
|
|
#
|
|
- name: Ensure crudini
|
|
shell: 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
|
|
|