aboutsummaryrefslogtreecommitdiff
path: root/scripts/deploy/app/_setup.yml
blob: 7a9ba288576226c44d5eff606d391476d30f9f98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# available vars:
# workdir -- the local directory of run_id

- name: setup libhotstuff example binaries
  block:
    - apt:
        pkg:
          - g++
          - libssl-dev
          - libuv1-dev
          - cmake
          - make
          - dh-autoreconf
        state:
          latest
      become: true
      become_user: root
    - file:
        path: "{{ hs_repo_dir }}"
        state: directory
    - synchronize:
        archive: true
        delete: true
        src: "{{ (workdir, hs_local_repo_dir, '') | path_join }}"
        dest: "{{ hs_repo_dir }}"
        mode: push
        rsync_opts:
          - "--exclude=.git"
          - "--exclude=scripts/"
          - "--exclude=CMakeCache.txt"
          - "--exclude=CMakeFiles"
          - "--exclude=libsecp256k1-prefix"
          - "--delete-excluded"