finished with a bunch more
This commit is contained in:
23
tasks/helpers/make.yml
Normal file
23
tasks/helpers/make.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: make.yml
|
||||
## Description: run make to build packages
|
||||
## Variables:
|
||||
##
|
||||
---
|
||||
- name: Fetch source code
|
||||
vars:
|
||||
path: "{{ pkg.path }}"
|
||||
repo: "{{ pkg.repo }}"
|
||||
version: "{{ pkg.version | default(omit) }}"
|
||||
ansible.builtin.include_tasks: helpers/git.yml
|
||||
|
||||
- name: Run make targets
|
||||
loop: "{{ pkg.targets }}"
|
||||
loop_control:
|
||||
loop_var: target
|
||||
become: "{{ target.do_become }}"
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ target.name }}"
|
||||
params: "{{ target.params | default(omit) }}"
|
||||
Reference in New Issue
Block a user