2017-09-19 22:50:37 +00:00
|
|
|
---
|
2017-09-26 11:27:18 +00:00
|
|
|
|
2017-09-19 22:50:37 +00:00
|
|
|
- name: clone bats source repo
|
|
|
|
git:
|
|
|
|
repo: "https://github.com/sstephenson/bats.git"
|
|
|
|
dest: "{{ ansible_env.GOPATH }}/src/github.com/sstephenson/bats"
|
|
|
|
|
|
|
|
- name: install bats
|
|
|
|
command: "./install.sh /usr/local"
|
|
|
|
args:
|
|
|
|
chdir: "{{ ansible_env.GOPATH }}/src/github.com/sstephenson/bats"
|
|
|
|
|
|
|
|
- name: link bats
|
|
|
|
file:
|
|
|
|
src: /usr/local/bin/bats
|
|
|
|
dest: /usr/bin/bats
|
2017-09-26 11:27:18 +00:00
|
|
|
state: link
|