diff --git a/ubuntu-deb-general/defaults/main.yml b/ubuntu-deb-general/defaults/main.yml index 11377ac..ac6d6b6 100644 --- a/ubuntu-deb-general/defaults/main.yml +++ b/ubuntu-deb-general/defaults/main.yml @@ -78,6 +78,7 @@ exim_email_server_pkgs: - exim4-config - exim4-daemon-light +disable_some_not_needed_services: False services_to_be_disabled: - rpcbind - atd diff --git a/ubuntu-deb-general/tasks/disable-unneeded-services.yml b/ubuntu-deb-general/tasks/disable-unneeded-services.yml index 67f5ccc..68884cb 100644 --- a/ubuntu-deb-general/tasks/disable-unneeded-services.yml +++ b/ubuntu-deb-general/tasks/disable-unneeded-services.yml @@ -2,5 +2,5 @@ - name: Disable some unneeded services service: name={{ item }} state=stopped enabled=no with_items: '{{ services_to_be_disabled }}' - ignore_errors: True + when: disable_some_not_needed_services tags: [ 'bootstrap', 'disable_services' ]