buluma.alternatives

Ansible Role Alternatives

Set up alternatives

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

Example Playbook

This example is taken from molecule/default/converge.yml and is tested every time there is a push, pull request, or release.

---
- name: converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.alternatives

Before running the playbook, you need to prepare the machine. In Continuous Integration (CI), this is done using molecule/default/prepare.yml:

---
- name: prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: buluma.bootstrap

  tasks:
    - name: create a fake binary
      ansible.builtin.file:
        path: /bin/my_fake_binary
        state: touch
        mode: "0755"

You can also see a full explanation and example on using these roles.

Role Variables

Default values for the variables are in defaults/main.yml:

---
# defaults file for alternatives

# This shows how to use python3.7 if both
# python 2.7 and python 3.7 are on the system.
# alternatives_list:
#   - name: python
#     link: /usr/bin/python2.7
#     path: /usr/bin/python
#   - name: python
#     link: /usr/bin/python3.7
#     path: /usr/bin/python

alternatives_list: []

Requirements

State of Used Roles

The following roles prepare the system. You can choose a different method to prepare your system.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version

Context

This role is part of many other roles that are compatible. Check out the documentation for these roles for more information.

Here are the related roles:

dependencies

Compatibility

This role has been tested on the following container images:

Container Tags
Alpine all
Amazon Candidate
EL 8
Debian all
Fedora all
openSUSE all
Ubuntu all

The minimum required version of Ansible is 2.12. Tests have been run on:

  • The previous version.
  • The current version.
  • The development version.

If you encounter any issues, please report them in GitHub.

Changelog

Role History

License

Apache-2.0

Author Information

Shadow Walker

Informazioni sul progetto

Set alternatives

Installa
ansible-galaxy install buluma.alternatives
Licenza
apache-2.0
Download
7.5k
Proprietario
DevOps Engineer