curl
Ansible Role: Curl
- Designed for systems lacking Curl, or systems wanting a specific version of curl.
- Builds and Installs specified Curl from released source.
- 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.
ansible-galaxy install fubarhouse/ansible-role-curl