buluma.travis
Ansible Role: travis
This role installs Travis on your machine.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
The following example comes from molecule/default/converge.yml
and is tested regularly.
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: buluma.travis
Before running this role, the machine needs some preparation. This is done in CI using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
gather_facts: yes
become: yes
vars:
ruby_download_url: http://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
ruby_version: 3.0.0
ruby_install_gems_user: root
ruby_install_gems:
- json
ruby_gems_bin_path: /root/.gem/ruby/bin
pre_tasks:
- name: Add RubyGems bin directory to system-wide $PATH
ansible.builtin.copy:
dest: /etc/profile.d/ruby.sh
content: 'PATH=$PATH:{{ ruby_gems_bin_path }}'
mode: 0644
- name: Don't install Bundler on CentOS 7 due to old Ruby version
ansible.builtin.set_fact:
ruby_install_bundler: false
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version == '7'
roles:
- role: buluma.bootstrap
- role: buluma.buildtools
# - role: buluma.ruby
- role: buluma.ruby_gems
You can also find a full explanation and example on how to use these roles.
Requirements
- The pip packages listed in requirements.txt.
State of Used Roles
The following roles help to set up your system. You could also prepare your system differently.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.buildtools | ||
buluma.ruby | ||
buluma.ruby_gems |
Context
This role is part of a collection of compatible roles. You can find more information in the documentation of these roles.
Here is a visual of related roles:
Compatibility
This role has been tested on these container images:
Container | Tags |
---|---|
Alpine | all |
EL | 8 |
Debian | all |
opensuse | all |
Ubuntu | all |
You need at least Ansible version 2.12. We have tested it with:
- The previous version.
- The current version.
- The development version.
If you encounter any issues, please report them on GitHub.
Changelog
See Role History.
License
This project is licensed under Apache-2.0.
Author Information
Created by Shadow Walker.
ansible-galaxy install buluma.travis