X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Ftuer.yml;h=438a65bf332c8451a3f651b98b11145f03ffab04;hb=f20d1bcbcc14c1f4daed22d902d7eb3834cb611e;hp=cd06649f6298d3758d807ea0f8e78076f9faf3ab;hpb=d00b456d24b9439c1a04d0a1b8b86aab4ef6fc61;p=noc.git diff --git a/ansible/tuer.yml b/ansible/tuer.yml index cd06649..438a65b 100644 --- a/ansible/tuer.yml +++ b/ansible/tuer.yml @@ -1,15 +1,11 @@ - hosts: torwaechter connection: local tasks: - - name: Create cache repository + - name: Create go directories file: - path: .cache/openwrt/tuer - state: directory - - - name: Create GOPATH directory - file: - path: .cache/openwrt/tuer/gopath + path: .cache/openwrt/tuer/{{ item }} state: directory + with_items: [ gopath, gocache ] - name: Clone necessary git repositories git: @@ -25,7 +21,8 @@ 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 @@ -33,6 +30,8 @@ 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