summaryrefslogtreecommitdiffstats
path: root/setup-dev-tools/tasks/main.yml
diff options
context:
space:
mode:
authorThiago Abdo2019-11-13 11:02:09 +0100
committerThiago Abdo2019-11-13 11:02:09 +0100
commit1f425b2e22714e4de3b54dc608adc3a942529f2e (patch)
treec3df21b10faaf6719776edaa9f52f3ac8213fa36 /setup-dev-tools/tasks/main.yml
parentMoves distro_specific to better location (diff)
downloadansible-dracut-1f425b2e22714e4de3b54dc608adc3a942529f2e.tar.gz
ansible-dracut-1f425b2e22714e4de3b54dc608adc3a942529f2e.tar.xz
ansible-dracut-1f425b2e22714e4de3b54dc608adc3a942529f2e.zip
move distro specifics to files templating
Signed-off-by: Thiago Abdo <tjabdo@inf.ufpr.br>
Diffstat (limited to 'setup-dev-tools/tasks/main.yml')
-rw-r--r--setup-dev-tools/tasks/main.yml23
1 files changed, 6 insertions, 17 deletions
diff --git a/setup-dev-tools/tasks/main.yml b/setup-dev-tools/tasks/main.yml
index 000c197..8dbb196 100644
--- a/setup-dev-tools/tasks/main.yml
+++ b/setup-dev-tools/tasks/main.yml
@@ -1,18 +1,7 @@
---
-- name: Enable powerTools in CentOS 8
- command: dnf config-manager --set-enabled PowerTools
- when:
- - ansible_distribution == "CentOS"
- - ansible_distribution_major_version == "8"
-
-
-# Get packages names for the target distro
-- include: tasks/distro.yml
-
-# Finally lets install those packages
-- name: Install dev tools
- package:
- name: "{{ item }}"
- state: present
- with_items: "{{ pkgnames }}"
-
+- name: DevTools | Get distro specific tasks
+ include_tasks: "{{ item }}"
+ with_first_found:
+ - "tasks/distro/{{ ansible_distribution }}-{{ ansible_distribution_version}}.yml"
+ - "tasks/distro/{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
+ - "tasks/distro/{{ ansible_distribution }}.yml"