Commit 63a330a6 authored by bbguimaraes's avatar bbguimaraes
Browse files

ansible: `make` only when needed

parent 0ac467f0
......@@ -19,6 +19,7 @@
- name: execute make
make:
chdir: "{{ tmp_dir }}/{{ target }}"
when: (dir + "/" + target_bin) is not exists
- name: copy executable to directory
copy:
remote_src: true
......
......@@ -16,9 +16,11 @@
- ["subs", "lbry"]
- name: build programs (make)
make:
chdir: "{{ src_dir }}/{{ item }}"
chdir: "{{ src_dir }}/{{ item.0 }}"
when: (src_dir + "/" + item.1) is not exists
loop:
- subs
- - subs
subs
- name: build programs (autotools)
include_tasks: autotools.yaml
vars:
......
......@@ -12,6 +12,7 @@
make:
chdir: "{{ src_dir }}/proton-bridge"
target: build-nogui
when: '(src_dir + "/proton-bridge/proton-bridge") is not exists'
- name: create home directories
file:
state: directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment