diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-01-11 17:03:28 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-01-11 17:03:28 +0100 |
commit | 6e68a163a207529883dc61330dade959b4a83945 (patch) | |
tree | ff09e87957565e8d6dd0470ba8c2ab4999652e0a /roles/workstation/tasks | |
parent | 210d0413aed73da9e0eaf1a62ff88989d46e3011 (diff) | |
download | rules-6e68a163a207529883dc61330dade959b4a83945.tar.gz |
roles/workstation: Split distribution variable files
Diffstat (limited to 'roles/workstation/tasks')
-rw-r--r-- | roles/workstation/tasks/main.yml | 3 | ||||
-rw-r--r-- | roles/workstation/tasks/pkgs.yml | 4 |
2 files changed, 5 insertions, 2 deletions
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 }}" |