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