ansible / ansible.builtin / v2.9.27 / module / make Run targets in a Makefile | "added in version" 2.1 of ansible.builtin" Authors: Linus Unnebäck (@LinusU) <linus@folkdatorn.se> preview | supported by communityansible.builtin.make (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Run targets in a Makefile.
- name: Build the default target make: chdir: /home/ubuntu/cool-project
- name: Run 'install' target as root make: chdir: /home/ubuntu/cool-project target: install become: yes
- name: Build 'all' target with extra arguments make: chdir: /home/ubuntu/cool-project target: all params: NUM_THREADS: 4 BACKEND: lapack
- name: Build 'all' target with a custom Makefile make: chdir: /home/ubuntu/cool-project target: all file: /some-project/Makefile
file: description: - Use a custom Makefile. type: path version_added: '2.5' version_added_collection: ansible.builtin chdir: description: - Change to this directory before running make. required: true type: path params: description: - Any extra parameters to pass to make. type: dict target: description: - The target to run. - Typically this would be something like C(install),C(test) or C(all)." type: str