From 98ae2332691836d7d327615e270772cb620b7a17 Mon Sep 17 00:00:00 2001 From: Phillip Thurston Date: Thu, 3 Aug 2017 20:56:02 -0600 Subject: [PATCH] Eliminated the need for two OS specific tasks when it can be done with one. --- tasks/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ba197cf..eac32d8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,6 @@ --- -- include: setup-RedHat.yml - when: ansible_os_family == 'RedHat' - -- include: setup-Debian.yml - when: ansible_os_family == 'Debian' +- name: OS specific setup + include: include: "setup-{{ ansible_os_family }}.yml" - name: Install Docker. package: name={{ docker_package }} state={{ docker_package_state }}