community.general.make – Run targets in a Makefile¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.make
.
Parameters¶
Examples¶
- name: Build the default target
community.general.make:
chdir: /home/ubuntu/cool-project
- name: Run 'install' target as root
community.general.make:
chdir: /home/ubuntu/cool-project
target: install
become: yes
- name: Build 'all' target with extra arguments
community.general.make:
chdir: /home/ubuntu/cool-project
target: all
params:
NUM_THREADS: 4
BACKEND: lapack
- name: Build 'all' target with a custom Makefile
community.general.make:
chdir: /home/ubuntu/cool-project
target: all
file: /some-project/Makefile
Authors¶
Linus Unnebäck (@LinusU) <linus@folkdatorn.se>