From c7758523003214286b8d112dec1557adc68e85da Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Tue, 18 Jun 2019 23:46:43 -0500 Subject: [PATCH] install tuned on non-EL distros --- roles/tuned/tasks/el.yml | 15 --------------- roles/tuned/tasks/main.yml | 22 ++++++++++++++++++---- 2 files changed, 18 insertions(+), 19 deletions(-) delete mode 100644 roles/tuned/tasks/el.yml diff --git a/roles/tuned/tasks/el.yml b/roles/tuned/tasks/el.yml deleted file mode 100644 index 6a41998..000000000 --- a/roles/tuned/tasks/el.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- - -- name: install packages - package: - name: "{{ item }}" - state: latest - with_items: - - tuned - - tuned-utils - -- name: start service - service: - name: tuned - enabled: yes - state: started diff --git a/roles/tuned/tasks/main.yml b/roles/tuned/tasks/main.yml index fad137e..8a65665 100644 --- a/roles/tuned/tasks/main.yml +++ b/roles/tuned/tasks/main.yml @@ -1,7 +1,21 @@ --- -- include_tasks: deb.yml - when: ansible_distribution in ["Debian", "Ubuntu"] +- name: install packages + package: + name: "{{ item }}" + state: latest + with_items: + - tuned + - tuned-utils + +- name: start service + service: + name: tuned + enabled: yes + state: started + +#- include_tasks: deb.yml +# when: ansible_distribution in ["Debian", "Ubuntu"] -- include_tasks: el.yml - when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora"] and not is_atomic +#- include_tasks: el.yml +# when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora"] and not is_atomic