From 6d24a2624cb18f54345c0489dcb27945dbedc2f5 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Fri, 4 Mar 2022 07:08:25 +0100 Subject: [PATCH] feat: use include_task --- roles/workstation/tasks/{arch.yml => archlinux.yml} | 2 +- roles/workstation/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename roles/workstation/tasks/{arch.yml => archlinux.yml} (95%) diff --git a/roles/workstation/tasks/arch.yml b/roles/workstation/tasks/archlinux.yml similarity index 95% rename from roles/workstation/tasks/arch.yml rename to roles/workstation/tasks/archlinux.yml index 645b3ab..f33a585 100644 --- a/roles/workstation/tasks/arch.yml +++ b/roles/workstation/tasks/archlinux.yml @@ -23,5 +23,5 @@ become_user: aur_builder - name: Install gnome environnement - import_tasks: gnome.yml + include_tasks: gnome.yml when: gnome_environnement diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml index 4a5016e..47947bb 100644 --- a/roles/workstation/tasks/main.yml +++ b/roles/workstation/tasks/main.yml @@ -1,7 +1,7 @@ --- # tasks file for workstation - name: Install for arch - import_tasks: arch.yml + include_tasks: "{{ ansible_os_family | lower }}.yml" - name: enable service cups systemd: