From 6e68a163a207529883dc61330dade959b4a83945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 11 Jan 2022 17:03:28 +0100 Subject: roles/workstation: Split distribution variable files --- roles/workstation/tasks/main.yml | 3 +++ roles/workstation/tasks/pkgs.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'roles/workstation/tasks') diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml index 87f6188..0e4a9c2 100644 --- a/roles/workstation/tasks/main.yml +++ b/roles/workstation/tasks/main.yml @@ -1,3 +1,6 @@ +- name: include specific distribution variables + include_vars: "os_{{ ansible_distribution | lower }}.yml" + - name: include packages tags: always include_tasks: diff --git a/roles/workstation/tasks/pkgs.yml b/roles/workstation/tasks/pkgs.yml index fd8a65a..f4f2f44 100644 --- a/roles/workstation/tasks/pkgs.yml +++ b/roles/workstation/tasks/pkgs.yml @@ -3,5 +3,5 @@ name: "{{ item }}" state: present loop: - - "{{ workstation_pkgs['common'] }}" - - "{{ workstation_pkgs[ansible_distribution | lower] }}" + - "{{ workstation_pkgs_common }}" + - "{{ workstation_pkgs }}" -- cgit v1.2.3