From 1c830e285e19f2d571cf50ef912f01f0f7d68e10 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 15 Aug 2018 01:08:10 +0200 Subject: Extra development packages --- roles/devel/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'roles/devel/tasks/main.yml') diff --git a/roles/devel/tasks/main.yml b/roles/devel/tasks/main.yml index 02ddce1..d42dd31 100644 --- a/roles/devel/tasks/main.yml +++ b/roles/devel/tasks/main.yml @@ -1,5 +1,19 @@ +- name: "Gather OS specific variables" + include_vars: "{{ item }}" + with_first_found: + - skip: true + files: + - "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml" + - "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version }}.yml" + - "{{ ansible_distribution|lower }}.yml" + - "{{ ansible_os_family|lower }}.yml" + - include_tasks: dnf.yml when: ansible_distribution | lower == 'fedora' - include_tasks: yum.yml when: (ansible_os_family | lower == 'redhat') and (ansible_distribution | lower != 'fedora') + +- name: Install various development packages + package: name={{item}} state=present + with_items: "{{ common_packages | union(packages | default([])) }}" -- cgit v1.2.3