summaryrefslogtreecommitdiffstats
path: root/roles/devel
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-15 01:08:10 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-15 01:08:10 +0200
commit1c830e285e19f2d571cf50ef912f01f0f7d68e10 (patch)
tree67ef5bbb7b5e302c9477e648591cd08cad4ee029 /roles/devel
parenta5dc813bab19dffe02dadfb58c19b455df199a08 (diff)
downloaditm-1c830e285e19f2d571cf50ef912f01f0f7d68e10.tar.gz
itm-1c830e285e19f2d571cf50ef912f01f0f7d68e10.tar.bz2
itm-1c830e285e19f2d571cf50ef912f01f0f7d68e10.tar.xz
itm-1c830e285e19f2d571cf50ef912f01f0f7d68e10.zip
Extra development packages
Diffstat (limited to 'roles/devel')
-rw-r--r--roles/devel/tasks/dnf.yml4
-rw-r--r--roles/devel/tasks/main.yml14
-rw-r--r--roles/devel/tasks/yum.yml4
-rw-r--r--roles/devel/vars/main.yml1
4 files changed, 19 insertions, 4 deletions
diff --git a/roles/devel/tasks/dnf.yml b/roles/devel/tasks/dnf.yml
index 1bf34f7..350108a 100644
--- a/roles/devel/tasks/dnf.yml
+++ b/roles/devel/tasks/dnf.yml
@@ -1,5 +1,5 @@
-- name: Install various ansible requirements
+- name: Install development package groups
dnf: name={{item}} state=present
with_items:
- "@Development and Creative Workstation"
- - "libconfig-devel" \ No newline at end of file
+
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([])) }}"
diff --git a/roles/devel/tasks/yum.yml b/roles/devel/tasks/yum.yml
index 4613ada..6fc31a0 100644
--- a/roles/devel/tasks/yum.yml
+++ b/roles/devel/tasks/yum.yml
@@ -1,5 +1,5 @@
-- name: Install various ansible requirements
+- name: Install development package groups
yum: name={{item}} state=present
with_items:
- "@^Development and Creative Workstation"
- - "libconfig-devel"
+
diff --git a/roles/devel/vars/main.yml b/roles/devel/vars/main.yml
new file mode 100644
index 0000000..9024160
--- /dev/null
+++ b/roles/devel/vars/main.yml
@@ -0,0 +1 @@
+common_packages: [ cmake, doxygen, libdb-devel, libnl3-devel, libmnl-devel, elfutils-devel, iptables-devel, numactl-devel, boost-devel, tcl, tk, libconfig-devel ] \ No newline at end of file