diff options
Diffstat (limited to 'setup-dev-tools')
-rw-r--r-- | setup-dev-tools/defaults/main.yml | 2 | ||||
-rw-r--r-- | setup-dev-tools/tasks/distro.yml | 16 | ||||
-rw-r--r-- | setup-dev-tools/tasks/main.yml | 8 |
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 }}" |