X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Ftuer.yml;fp=ansible%2Ftuer.yml;h=0000000000000000000000000000000000000000;hb=dcf1ea76ad802c0fe038539c9476ce4f9cc4dde8;hp=0d26eb3560a28711110ab980855fa379bfa0f259;hpb=6cab06d2fad2531b446c24105195f4ff029b380b;p=noc.git diff --git a/ansible/tuer.yml b/ansible/tuer.yml deleted file mode 100644 index 0d26eb3..0000000 --- a/ansible/tuer.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -- hosts: torwaechter - connection: local - pre_tasks: - - name: Create go directories - file: - path: .cache/openwrt/tuer/{{ item }} - state: directory - with_items: [ gopath, gocache ] - - - name: Clone necessary git repositories - git: - repo: https://github.com/realraum/{{ item }}.git - dest: .cache/openwrt/tuer/{{ item }} - update: True - with_items: [ door_and_sensors ] - - - name: Download dependencies - command: go get -d ./... - args: - chdir: .cache/openwrt/tuer/door_and_sensors/{{ item }} - environment: - GOCACHE: "{{ playbook_dir }}/.cache/openwrt/tuer/gocache" - GOPATH: "{{ playbook_dir }}/.cache/openwrt/tuer/gopath" - with_items: [ door_client, door_daemon, update-keys ] - - - name: Cross-compile Go binaries - command: go build -ldflags "-s" - 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 - GOARCH: 386 - with_items: [ door_client, door_daemon, update-keys ] - - roles: - - role: openwrt-image - delegate_to: localhost