jonsible.builder

jonsible.builder

Build Status Galaxy

Role to install builder

Requirements

None.

Role Variables

Default usage

As default builder is installed and running. If you want to adapt this to your needs look at the Advanced usage section.

Advanced usage

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-essential

For an OS family, add -family to the ansible_os_family

dependencies:
  Debian-family:
    - build-essential

Dependencies

None

Example Playbook

Install builder with the default settings

- hosts: all
  tasks:
    - include_vars: buildspec.yml

    - include_role:
        name: jonsible.builder
        tasks_from: builder.yml

License

GPL-3.0-or-later

Author Information

This role was created in 2020 by [Jonathan Scherrer].

About

Role to install builder

Install
ansible-galaxy install jonsible.builder
GitHub repository
License
gpl-3.0
Downloads
84