Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.
/ ansible-role-clang Public archive

Ansible role to install clang

License

Notifications You must be signed in to change notification settings

Ableton/ansible-role-clang

Repository files navigation

This repository has been archived, and although the role remains accessible on Ansible Galaxy, we are no longer maintaining it.

Ansible role ableton.clang

This role installs the clang compiler and associated utilities on the given Ansible host.

Requirements

Ansible >= 2.10, and a Debian-flavored Linux host.

For macOS, clang should be provided via Xcode. On Windows, clang is available from Chocolatey, but this role does not presently support that.

Role Variables

The following variables influence how clang is installed on the host:

  • clang_versions: A list of clang versions to install. Multiple clang versions can be installed on a host side-by-side. However, this role doesn't provide symlinks to the binaries, so you must either take care of this in your playbooks, or ensure that your application requests a specific clang version during compilation.

See the defaults/main.yml file for full documentation on required and optional role variables.

Example Playbook

---
- name: Install clang on hosts
  hosts: "all"
  vars:
    clang_versions:
      - 5.0
      - 6.0
      - 7
      - 11
      - 12

  roles:
    - ableton.clang

License

MIT

Maintainers

This project is maintained by the following GitHub users: