diff options
author | Jason DeTiberus <detiber@gmail.com> | 2016-11-21 15:28:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-21 15:28:06 -0500 |
commit | e34870e2b1b452f9719d14911d7a2a557ca701bd (patch) | |
tree | 819e480869873f6c4b231e9e82d2057f429ca573 /roles/openshift_node | |
parent | e2d6fe37d6a599715d3136cd396ca8f27b5fb9b7 (diff) | |
parent | 81da6efcee3a4426df2fea7a198ccdc61254e30d (diff) | |
download | openshift-e34870e2b1b452f9719d14911d7a2a557ca701bd.tar.gz openshift-e34870e2b1b452f9719d14911d7a2a557ca701bd.tar.bz2 openshift-e34870e2b1b452f9719d14911d7a2a557ca701bd.tar.xz openshift-e34870e2b1b452f9719d14911d7a2a557ca701bd.zip |
Merge pull request #2833 from dustymabe/dusty-tuned
Only run tuned-adm if tuned exists.
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index 6022694bc..14d03bb44 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -38,9 +38,15 @@ action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }},tuned-profiles-{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }} state=present" when: not openshift.common.is_containerized | bool +- name: Check for tuned package + command: rpm -q tuned + register: tuned_installed + changed_when: false + failed_when: false + - name: Set atomic-guest tuned profile command: "tuned-adm profile atomic-guest" - when: openshift.common.is_atomic | bool + when: tuned_installed.rc == 0 and openshift.common.is_atomic | bool - name: Install sdn-ovs package action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-sdn-ovs{{ openshift_pkg_version | oo_image_tag_to_rpm_version(include_dash=True) }} state=present" |