summaryrefslogtreecommitdiffstats
path: root/setup-dev-tools
diff options
context:
space:
mode:
authorJonathan Bauer2017-03-17 16:56:55 +0100
committerJonathan Bauer2017-03-17 16:56:55 +0100
commitb5516c8ff47ed02e50821644f788adc14c19ab1c (patch)
tree5ad0d9b69d8f9c8b600a648b8811e2cd9725e45e /setup-dev-tools
parentinitial commit (diff)
downloadansible-dracut-b5516c8ff47ed02e50821644f788adc14c19ab1c.tar.gz
ansible-dracut-b5516c8ff47ed02e50821644f788adc14c19ab1c.tar.xz
ansible-dracut-b5516c8ff47ed02e50821644f788adc14c19ab1c.zip
added basic roles to generate stage3 initramfs
Diffstat (limited to 'setup-dev-tools')
-rw-r--r--setup-dev-tools/defaults/main.yml2
-rw-r--r--setup-dev-tools/tasks/distro.yml16
-rw-r--r--setup-dev-tools/tasks/main.yml8
3 files changed, 26 insertions, 0 deletions
diff --git a/setup-dev-tools/defaults/main.yml b/setup-dev-tools/defaults/main.yml
new file mode 100644
index 0000000..61e7f27
--- /dev/null
+++ b/setup-dev-tools/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+packer_version: "0.12.2"
diff --git a/setup-dev-tools/tasks/distro.yml b/setup-dev-tools/tasks/distro.yml
new file mode 100644
index 0000000..0f120ec
--- /dev/null
+++ b/setup-dev-tools/tasks/distro.yml
@@ -0,0 +1,16 @@
+---
+# This sets the package names for the supported distros.
+- set_fact:
+ pkgnames:
+ - "build-essential"
+ - "cmake"
+ - "git"
+ when:
+ - ansible_distribution == "Ubuntu"
+- set_fact:
+ pkgnames:
+ - "@development tools"
+ - "cmake"
+ - "git"
+ when:
+ - ansible_distribution == "CentOS"
diff --git a/setup-dev-tools/tasks/main.yml b/setup-dev-tools/tasks/main.yml
new file mode 100644
index 0000000..62a176f
--- /dev/null
+++ b/setup-dev-tools/tasks/main.yml
@@ -0,0 +1,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=installed
+ with_items: "{{ pkgnames }}"