From 250042228724222bf4c087b0299de5ebb000baa0 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 12 Jul 2016 16:37:27 +0200 Subject: [PATCH] library/roles/ubuntu-deb-general/defaults/main.yml: Do not run by default the task that disables services. --- ubuntu-deb-general/defaults/main.yml | 1 + ubuntu-deb-general/tasks/disable-unneeded-services.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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' ]