summaryrefslogtreecommitdiffstats
path: root/roles/devel/tasks/main.yml
blob: 7d08a1532f52f02c967af76f2283ad8bb167ec53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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: yum.yml
  when: ansible_pkg_mgr == 'yum' 
  
- include_tasks: dnf.yml
  when: ansible_pkg_mgr == 'dnf'

- name: Install various development packages
  package: name={{item}} state=present
  with_items: "{{ common_packages | union ( extra_packages | default([]) ) | union(packages | default([])) }}"