Role to install builder
None.
As default builder is installed and running. If you want to adapt this to your needs look at the Advanced usage section.
You will have to specify build specs like this
_name: tmux
version: 2.9
owner: root
prefix: /usr/local
dependencies:
build:
Archlinux:
- base-devel
Debian-family:
- build-essential
RedHat-family:
- "@Development Tools"
run:
Archlinux:
- libevent
# Clone and Fetch mutually exclusive
clone:
repo: https://github.com/tmux/tmux.git
fetch:
url: https://github.com/tmux/tmux/releases/download/2.9/tmux-2.9.tar.gz
extra_opts:
- --strip-components=1
prepare:
shell: |
./bootstrap
patch < apply.diff
build:
shell: |
./configure \
--prefix={{ prefix }} \
--enable-ipv6 \
make -j4
install:
shell: |
make install
creates: "{{ prefix }}/bin/{{ _name }}"
uninstall:
shell: |
make uninstall
removes: "{{ prefix }}/bin/{{ _name }}"To specify dependencies for a specific distribution, create a key matching ansible_distribution in the dependencies dict.
dependencies:
Ubuntu:
- build-essentialFor an OS family, add -family to the ansible_os_family
dependencies:
Debian-family:
- build-essentialNone
Install builder with the default settings
- hosts: all
tasks:
- include_vars: buildspec.yml
- include_role:
name: jonsible.builder
tasks_from: builder.yml
GPL-3.0-or-later
This role was created in 2020 by [Jonathan Scherrer].