Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fubarhouse/ansible-role-curl

Compile and install Curl from source or release with Ansible, for those of us who don't have curl, or those wanting upgrades!
https://github.com/fubarhouse/ansible-role-curl

ansible curl

Last synced: 5 days ago
JSON representation

Compile and install Curl from source or release with Ansible, for those of us who don't have curl, or those wanting upgrades!

Awesome Lists containing this project

README

        

# Ansible Role: Curl

[![Build Status](https://img.shields.io/travis/fubarhouse/ansible-role-curl/master.svg?style=for-the-badge)](https://travis-ci.org/fubarhouse/ansible-role-curl)
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg?style=for-the-badge)](https://github.com/orangemug/stability-badges)
[![Ansible Galaxy](https://img.shields.io/ansible/role/13298.svg?style=for-the-badge)](https://galaxy.ansible.com/fubarhouse/curl)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](https://raw.githubusercontent.com/fubarhouse/ansible-role-curl/master/LICENSE)

* Designed for systems lacking Curl, or systems wanting a specific version of curl.
* Builds and Installs specified Curl from [released source](https://curl.haxx.se/download/).
* Supports 20 different varieties of linux via Travis automated tests.

## Requirements

None.

## Role Variables

All of the variables associated to this role are controlled by source-builds only.

To enable a source-build, ensure the following is set to true, it is set to false ***by default***.

Default installations with this role will accommodate the system's package manager of the supported system - apt-get, yum or dnf.

````
curl_buildfromsource: true
````

Additional installation flags are optional, to run these flags on `configure`, specify the flags as follows:
````
curl_configure_flags:
- disable-shared
- with-ssl
````

The above configuration will validate to the following:
````
./configure --disable-shared --with-ssl
````

As a result of failing travis tests the option to use a supported mirror is available.

To use one of the mirrors, specify the http/s address like this:
````
curl_source: http://curl.haxx.se/download
````

Select location to install temporary, or accept the default below:
````
curl_path: /tmp
````

Select which version to install, or accept the default below:
````
curl_version: "7.51.0"
````

Select which archive type to download/extract, or accept the default below:
````
curl_extension: "tar.gz"
````

## Dependencies

None.

## Example Playbook
````
- hosts: localhost
roles:
- fubarhouse.curl
````

## License

MIT / BSD

## Author Information

This role was created in 2016 by [Karl Hepworth](https://twitter.com/fubarhouse).