mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
44 lines
965 B
YAML
44 lines
965 B
YAML
---
|
|
- 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 }}"
|
|
|
|
- name: Get bats
|
|
git:
|
|
repo: 'https://github.com/sstephenson/bats.git'
|
|
dest: /opt/bats
|
|
|
|
- name: Install bats
|
|
file:
|
|
src: /opt/bats/libexec/bats
|
|
dest: /usr/bin/bats
|
|
state: link
|
|
|
|
- name: Get ShellCheck
|
|
get_url:
|
|
url: https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
|
|
dest: /tmp/shellcheck.tar.xz
|
|
|
|
- name: Install ShellCheck
|
|
unarchive:
|
|
src: /tmp/shellcheck.tar.xz
|
|
dest: /usr/bin
|
|
extra_opts:
|
|
- --strip-components=1
|
|
- --wildcard ".shellcheck"
|
|
|
|
- name: Install fpm
|
|
gem:
|
|
name: fpm
|
|
state: present
|
|
user_install: no
|