Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/ansible/roles/nyaapantsu/tasks/main.yml
tomleb da1e323825 Add playbook to download /build latest nyaa, fix k-on elasticsearch issue (#821)
* Install nyaa from latest github commit

* Add install playbook, fix k-on search
2017-05-29 07:54:24 +10:00

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 }}"