2017-09-24 14:03:05 +00:00
|
|
|
---
|
|
|
|
- name: Load a variable file based on the OS type, or a default if not found.
|
|
|
|
include_vars: "{{ item }}"
|
|
|
|
with_first_found:
|
|
|
|
- "{{ ansible_distribution }}.yml"
|
|
|
|
- "{{ ansible_os_family }}.yml"
|
|
|
|
- "default.yml"
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: "{{ test_dependencies }}"
|
|
|
|
|
2017-09-27 19:36:51 +00:00
|
|
|
- name: Get ShellCheck
|
2017-09-27 20:58:00 +00:00
|
|
|
get_url:
|
2017-09-27 19:36:51 +00:00
|
|
|
url: https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
|
|
|
|
dest: /tmp/shellcheck.tar.xz
|
|
|
|
|
|
|
|
- name: Install ShellCheck
|
2017-09-28 23:59:15 +00:00
|
|
|
command: tar xvf /tmp/shellcheck.tar.xz -C /usr/bin --strip-components=1
|
2017-09-27 20:58:00 +00:00
|
|
|
args:
|
|
|
|
warn: no
|
2017-09-27 23:06:59 +00:00
|
|
|
creates: /usr/bin/shellcheck
|
2017-09-27 19:36:51 +00:00
|
|
|
|
2017-09-24 14:03:05 +00:00
|
|
|
- name: Install fpm
|
|
|
|
gem:
|
|
|
|
name: fpm
|
|
|
|
state: present
|
|
|
|
user_install: no
|