summaryrefslogtreecommitdiffstats
path: root/roles/devel/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/devel/tasks')
-rw-r--r--roles/devel/tasks/dnf.yml5
-rw-r--r--roles/devel/tasks/main.yml5
-rw-r--r--roles/devel/tasks/yum.yml5
3 files changed, 15 insertions, 0 deletions
diff --git a/roles/devel/tasks/dnf.yml b/roles/devel/tasks/dnf.yml
new file mode 100644
index 0000000..1bf34f7
--- /dev/null
+++ b/roles/devel/tasks/dnf.yml
@@ -0,0 +1,5 @@
+- name: Install various ansible requirements
+ 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
new file mode 100644
index 0000000..02ddce1
--- /dev/null
+++ b/roles/devel/tasks/main.yml
@@ -0,0 +1,5 @@
+- include_tasks: dnf.yml
+ when: ansible_distribution | lower == 'fedora'
+
+- include_tasks: yum.yml
+ when: (ansible_os_family | lower == 'redhat') and (ansible_distribution | lower != 'fedora')
diff --git a/roles/devel/tasks/yum.yml b/roles/devel/tasks/yum.yml
new file mode 100644
index 0000000..4613ada
--- /dev/null
+++ b/roles/devel/tasks/yum.yml
@@ -0,0 +1,5 @@
+- name: Install various ansible requirements
+ yum: name={{item}} state=present
+ with_items:
+ - "@^Development and Creative Workstation"
+ - "libconfig-devel"