projects
/
noc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d00b456
)
tuer: Avoid polluting the user's homedir with go crap
author
nicoo
<nicoo@realraum.at>
Sun, 22 Apr 2018 21:24:58 +0000
(23:24 +0200)
committer
nicoo
<nicoo@realraum.at>
Sun, 22 Apr 2018 21:25:03 +0000
(23:25 +0200)
ansible/tuer.yml
patch
|
blob
|
history
diff --git
a/ansible/tuer.yml
b/ansible/tuer.yml
index
cd06649
..
438a65b
100644
(file)
--- a/
ansible/tuer.yml
+++ b/
ansible/tuer.yml
@@
-1,15
+1,11
@@
- hosts: torwaechter
connection: local
tasks:
- hosts: torwaechter
connection: local
tasks:
- - name: Create cache repository
+ - name: Create go directories
file:
file:
- path: .cache/openwrt/tuer
- state: directory
-
- - name: Create GOPATH directory
- file:
- path: .cache/openwrt/tuer/gopath
+ path: .cache/openwrt/tuer/{{ item }}
state: directory
state: directory
+ with_items: [ gopath, gocache ]
- name: Clone necessary git repositories
git:
- name: Clone necessary git repositories
git:
@@
-25,7
+21,8
@@
args:
chdir: .cache/openwrt/tuer/door_and_sensors/{{ item }}
environment:
args:
chdir: .cache/openwrt/tuer/door_and_sensors/{{ item }}
environment:
- GOPATH: "{{ playbook_dir }}/.cache/openwrt/tuer/gopath"
+ GOCACHE: "{{ playbook_dir }}/.cache/openwrt/tuer/gocache"
+ GOPATH: "{{ playbook_dir }}/.cache/openwrt/tuer/gopath"
with_items: [ door_client, door_daemon ]
- name: Cross-compile Go binaries
with_items: [ door_client, door_daemon ]
- name: Cross-compile Go binaries
@@
-33,6
+30,8
@@
args:
chdir: .cache/openwrt/tuer/door_and_sensors/{{ item }}
environment:
args:
chdir: .cache/openwrt/tuer/door_and_sensors/{{ item }}
environment:
+ GOCACHE: "{{ playbook_dir }}/.cache/openwrt/tuer/gocache"
+ GOPATH: "{{ playbook_dir }}/.cache/openwrt/tuer/gopath"
GO386: 387
CGO_ENABLED: 0
GOOS: linux
GO386: 387
CGO_ENABLED: 0
GOOS: linux