From c406edb04015a7c04b0906ef3a1a24ef05e36f3c Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Fri, 19 Feb 2021 15:53:50 +0100 Subject: [PATCH] Add RHEL8 support Service setup did not properly detect the service type when using a distribution with major version greater than `7`. This now defaults automatically to `systemd`. --- tasks/service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/service.yml b/tasks/service.yml index 4d8a206..d852efc 100644 --- a/tasks/service.yml +++ b/tasks/service.yml @@ -8,7 +8,7 @@ - include_tasks: service/systemd.yml when: deploy_service_type == "systemd" or - (deploy_service_type == "default" and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") and ansible_distribution_major_version == '7') + (deploy_service_type == "default" and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") and ansible_distribution_major_version >= '7') - name: "Service - Ensure {{ deploy_service_name }} starts on boot" become: yes