From ba3004ef2b0713494b863539e17c1a6006ff88f7 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 25 Apr 2020 16:19:30 +0300 Subject: [PATCH] roles/common: Don't run rc.local task on Ubuntu 20.04 We haven't actually used rc.local since Ubuntu 16.04. Now anything that we need to run at boot we can do with systemd anyways. --- roles/common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index e6181b5..17b3331 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -40,7 +40,7 @@ tags: sysctl - name: Reconfigure /etc/rc.local - when: ansible_distribution == 'Ubuntu' + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('18.04', '<=') template: src=rc.local_Ubuntu.j2 dest=/etc/rc.local owner=root group=root mode=0755 - name: Set I/O scheduler