install tuned on non-EL distros

This commit is contained in:
Josh Lay 2019-06-18 23:46:43 -05:00
parent 23e8de07f3
commit c775852300
2 changed files with 18 additions and 19 deletions

View file

@ -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

View file

@ -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
- include_tasks: el.yml
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora"] and not is_atomic
- 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