15 lines
513 B
YAML
15 lines
513 B
YAML
---
|
|
- name: Disable some unneeded services
|
|
service: name={{ item }} state=stopped enabled=no
|
|
with_items: '{{ services_to_be_disabled }}'
|
|
when: disable_some_not_needed_services
|
|
tags: [ 'bootstrap', 'disable_services' ]
|
|
|
|
- name: Disable some unneeded services
|
|
service: name=apport state=stopped enabled=no
|
|
when:
|
|
- disable_apport_service
|
|
- ansible_distribution == "Ubuntu"
|
|
- ansible_distribution_version is version_compare('18.04', '>=')
|
|
tags: [ 'bootstrap', 'disable_services', 'apport' ]
|