NOTE: This repository has been archived, and although the role remains accessible on Ansible Galaxy, we are no longer maintaining it
This role installs sccache on the given Ansible host and configures it for a given user.
Ansible >= 2.10 is required. This role supports package-based installation on the following OS types:
- macOS (via the
homebrew
module) - Windows (via the
win_chocolatey
module)
For all other platforms, a source-based installation will be performed. On such systems where package-based installation is not available, the software can be installed from a binary download. In such cases, please refer to the sccache releases to see supported platforms.
The following variables influence how sccache
is installed on the host:
sccache_config_options
: Dictionary of dictionaries describing key/value options to write to thesccache
configuration file.sccache_download_url
: Where to download prebuiltsccache
binaries from.sccache_install_from_binary
: Whentrue
, installsccache
from a prebuilt binary instead of installing from a package manager.sccache_user
: User to configure sccache for.sccache_version
: Version and SHA256 checksums of sccache to install. Only applies when installing from a binary package.
See the defaults/main.yml
file for full documentation on required
and optional role variables.
---
- name: Install sccache on hosts
hosts: "all"
vars:
sccache_config_options:
cache:
redis.url: "redis://your-redis-server-here"
sccache_version:
version: "0.2.15"
shas:
Darwin: 908e939ea3513b52af03878753a58e7c09898991905b1ae3c137bb8f10fa1be2
pre_tasks:
- name: Force sccache to be installed from a binary on macOS
set_fact:
sccache_install_from_binary: true
when: ansible_os_family == "Darwin"
roles:
- ableton.sccache
MIT
This project is maintained by the following GitHub users: