install tuned on non-EL distros
This commit is contained in:
parent
23e8de07f3
commit
c775852300
2 changed files with 18 additions and 19 deletions
|
@ -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
|
|
|
@ -1,7 +1,21 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- include_tasks: deb.yml
|
- name: install packages
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: latest
|
||||||
|
with_items:
|
||||||
|
- tuned
|
||||||
|
- tuned-utils
|
||||||
|
|
||||||
- include_tasks: el.yml
|
- name: start service
|
||||||
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora"] and not is_atomic
|
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
|
||||||
|
|
Loading…
Reference in a new issue