da1e323825
* Install nyaa from latest github commit * Add install playbook, fix k-on search
18 lignes
571 o
YAML
18 lignes
571 o
YAML
- name: Make directory
|
|
file:
|
|
state: directory
|
|
path: "{{ nyaapantsu_build_directory }}/src/github.com/NyaaPantsu"
|
|
|
|
# TODO ability to get specify commit
|
|
- name: Get latest nyaa
|
|
git:
|
|
repo: 'https://github.com/NyaaPantsu/nyaa'
|
|
dest: "{{ nyaapantsu_build_directory }}/src/github.com/NyaaPantsu/nyaa"
|
|
|
|
# Assumes the GOPATH variable has been set
|
|
- name: Go build
|
|
shell: go build
|
|
args:
|
|
chdir: "{{ nyaapantsu_build_directory }}/src/github.com/NyaaPantsu/nyaa"
|
|
environment:
|
|
GOPATH: "/home/{{ ansible_ssh_user }}/{{ nyaapantsu_build_directory }}"
|